From a911f11a25ef44cf90e7fce08470724068a5a8a2 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 16 Nov 2020 07:13:16 +0100 Subject: gdict-utils: variable 'env_string' set but not used --- mate-dictionary/libgdict/gdict-utils.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mate-dictionary') diff --git a/mate-dictionary/libgdict/gdict-utils.c b/mate-dictionary/libgdict/gdict-utils.c index 2a463f74..e47dfd2d 100644 --- a/mate-dictionary/libgdict/gdict-utils.c +++ b/mate-dictionary/libgdict/gdict-utils.c @@ -107,13 +107,11 @@ pre_parse_hook (GOptionContext *context, gpointer data, GError **error) { - const char *env_string; - if (gdict_is_initialized) return TRUE; #ifdef GDICT_ENABLE_DEBUG - env_string = g_getenv ("GDICT_DEBUG"); + const char *env_string = g_getenv ("GDICT_DEBUG"); if (env_string != NULL) { gdict_debug_flags = @@ -121,8 +119,6 @@ pre_parse_hook (GOptionContext *context, gdict_debug_keys, G_N_ELEMENTS (gdict_debug_keys)); } -#else - env_string = NULL; #endif /* GDICT_ENABLE_DEBUG */ return TRUE; -- cgit v1.2.1