From a837a98bf1d2b82b4ac7b773b892d9a411e19e77 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 5 Sep 2019 08:11:42 +0200 Subject: remove warnings: "ENABLE_MAGIC" is not defined, evaluates to 0 fr-archive.c:45:5: warning: "ENABLE_MAGIC" is not defined, evaluates to 0 [-Wundef] fr-archive.c:519:5: warning: "ENABLE_MAGIC" is not defined, evaluates to 0 [-Wundef] --- src/fr-archive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fr-archive.c b/src/fr-archive.c index 6605ff3..c41aa7e 100644 --- a/src/fr-archive.c +++ b/src/fr-archive.c @@ -42,7 +42,7 @@ #include "fr-process.h" #include "fr-init.h" -#if ENABLE_MAGIC +#ifdef ENABLE_MAGIC #include #endif @@ -516,7 +516,7 @@ get_mime_type_from_content (GFile *file) static const char * get_mime_type_from_magic_numbers (GFile *file) { -#if ENABLE_MAGIC +#ifdef ENABLE_MAGIC static magic_t magic = NULL; if (! magic) { -- cgit v1.2.1