]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix compiler warning when not building with ZLIB support
authorAlexander Barton <alex@kfreebsd.barton.de>
Sun, 5 Aug 2012 23:35:56 +0000 (01:35 +0200)
committerAlexander Barton <alex@kfreebsd.barton.de>
Sun, 5 Aug 2012 23:35:56 +0000 (01:35 +0200)
This fixes:

 irc.c: In function ‘Option_String’:
 irc.c:333:9: error: variable ‘options’ set but not used

src/ngircd/irc.c

index 9508ecc457b9037f389f4a5cd1bbf1b7cb6f17be..efc34d4b2e087f8e3742c1d44ea6a820e2073f92 100644 (file)
@@ -327,12 +327,18 @@ IRC_HELP( CLIENT *Client, REQUEST *Req )
 
 
 static char *
-Option_String( CONN_ID Idx )
+#ifdef ZLIB
+Option_String(CONN_ID Idx)
+#else
+Option_String(UNUSED CONN_ID Idx)
+#endif
 {
        static char option_txt[8];
+#ifdef ZLIB
        UINT16 options;
 
        options = Conn_Options(Idx);
+#endif
 
        strcpy(option_txt, "F");        /* No idea what this means, but the
                                         * original ircd sends it ... */