From 75522caae62870d494c9920a26d02d4866404130 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Thu, 15 Sep 2011 19:14:53 +0200 Subject: [PATCH] main: avoid gcc warning for LOCALE && !NLS Mark charset as G_GNUC_UNUSED if ncmpc hasn't been configured with NLS. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index c597e96..a57f35d 100644 --- a/src/main.c +++ b/src/main.c @@ -544,6 +544,9 @@ main(int argc, const char *argv[]) { struct sigaction act; #ifdef ENABLE_LOCALE +#ifndef ENABLE_NLS + G_GNUC_UNUSED +#endif const char *charset = NULL; #endif GIOChannel *keyboard_channel; -- 2.30.2