From: Jonathan Neuschäfer Date: Thu, 15 Sep 2011 17:14:53 +0000 (+0200) Subject: main: avoid gcc warning for LOCALE && !NLS X-Git-Tag: release-0.20~90 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75522caae62870d494c9920a26d02d4866404130;p=ncmpc.git main: avoid gcc warning for LOCALE && !NLS Mark charset as G_GNUC_UNUSED if ncmpc hasn't been configured with NLS. --- 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;