1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

Fix compiler warning when not building with ZLIB support

This fixes:

 irc.c: In function ‘Option_String’:
 irc.c:333:9: error: variable ‘options’ set but not used
This commit is contained in:
Alexander Barton 2012-08-06 01:35:56 +02:00
parent b53b12aa5f
commit cfd0bddc30

View 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 ... */