From e4f6b0b3060bbba7c89cca0280397bb68b44af3e Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Sat, 4 Mar 2017 12:46:21 +0100 Subject: [PATCH] Declare and use only when needed --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index a38cbd8e9..48fe0d9fb 100644 --- a/src/main.c +++ b/src/main.c @@ -158,7 +158,9 @@ static DBusGProxy *awn_proxy = NULL; #endif gchar *prog_version; +#ifdef HAVE_LIBSM gchar *argv0; +#endif #ifdef HAVE_STARTUP_NOTIFICATION static SnLauncheeContext *sn_context = NULL; @@ -997,7 +999,9 @@ int main(int argc, char *argv[]) } prog_version = PROG_VERSION; +#ifdef HAVE_LIBSM argv0 = g_strdup(argv[0]); +#endif parse_cmd_opt(argc, argv); -- 2.11.4.GIT