From 25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 Mon Sep 17 00:00:00 2001 From: Jason Copenhaver Date: Fri, 16 Jan 2015 16:50:24 -0300 Subject: Fix compiler warnings on Cygwin and Mac OS X. * Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X. --- irc_commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'irc_commands.c') diff --git a/irc_commands.c b/irc_commands.c index 743fb417..6be756ff 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -769,7 +769,9 @@ void irc_exec( irc_t *irc, char *cmd[] ) if( g_strcasecmp( irc_commands[i].command, cmd[0] ) == 0 ) { /* There should be no typo in the next line: */ - for( n_arg = 0; cmd[n_arg]; n_arg ++ ); n_arg --; + for( n_arg = 0; cmd[n_arg]; n_arg ++ ) + ; + n_arg--; if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status & USTATUS_LOGGED_IN ) { -- cgit v1.2.3