From 890f7c4a4d7fe8fc236e5259e38299cb548cc4b0 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 1 Mar 2024 12:42:17 +0100 Subject: [PATCH] main.c: Fix unused variable when in non-development build The GSettings is used only for the development build, thus declare it only when really needed. --- src/shell/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/main.c b/src/shell/main.c index 009e2df74d..7840d4a685 100644 --- a/src/shell/main.c +++ b/src/shell/main.c @@ -252,7 +252,6 @@ main (gint argc, gchar **argv) { EShell *shell; - GSettings *settings; gboolean is_remote; gint ret; @@ -311,6 +310,7 @@ main (gint argc, GtkIconTheme *icon_theme; #endif #ifdef DEVELOPMENT + GSettings *settings; gboolean skip_warning_dialog; #endif