From cfd0bddc3014e87dead4db72ef206c6f61ee12c1 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 6 Aug 2012 01:35:56 +0200 Subject: [PATCH] Fix compiler warning when not building with ZLIB support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes: irc.c: In function ‘Option_String’: irc.c:333:9: error: variable ‘options’ set but not used --- src/ngircd/irc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index 9508ecc4..efc34d4b 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -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 ... */ -- 2.39.2