Code

main: avoid gcc warning for LOCALE && !NLS
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Thu, 15 Sep 2011 17:14:53 +0000 (19:14 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Fri, 16 Sep 2011 19:53:34 +0000 (21:53 +0200)
Mark charset as G_GNUC_UNUSED if ncmpc hasn't been configured with NLS.

src/main.c

index c597e96c766a122d3a6cda681c802f8de84e5ab9..a57f35dfcf27f610fe44972828b23af34b3c76f1 100644 (file)
@@ -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;