mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-31 17:49:11 +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:
parent
b53b12aa5f
commit
cfd0bddc30
@ -327,12 +327,18 @@ IRC_HELP( CLIENT *Client, REQUEST *Req )
|
|||||||
|
|
||||||
|
|
||||||
static char *
|
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];
|
static char option_txt[8];
|
||||||
|
#ifdef ZLIB
|
||||||
UINT16 options;
|
UINT16 options;
|
||||||
|
|
||||||
options = Conn_Options(Idx);
|
options = Conn_Options(Idx);
|
||||||
|
#endif
|
||||||
|
|
||||||
strcpy(option_txt, "F"); /* No idea what this means, but the
|
strcpy(option_txt, "F"); /* No idea what this means, but the
|
||||||
* original ircd sends it ... */
|
* original ircd sends it ... */
|
||||||
|
Loading…
Reference in New Issue
Block a user