From: Michael Poole Date: Sun, 30 Oct 2011 17:32:11 +0000 (-0400) Subject: Re-fix compilation of src/modcmd.c. X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=3c70e89e7cc738f30cfbd1a5530507af41fc9ed6 Re-fix compilation of src/modcmd.c. (I'm not sure why it looked like this compiled before.) src/modcmd.c (check_alias_args): strtoul has an attribute that makes gcc warn if its result is not used, so store (but ignore) its result. --- diff --git a/src/modcmd.c b/src/modcmd.c index 2417fdd..9e7d15f 100644 --- a/src/modcmd.c +++ b/src/modcmd.c @@ -995,8 +995,10 @@ check_alias_args(char *argv[], unsigned int argc) { continue; } else if (isdigit(argv[arg][1])) { char *end_num; + unsigned int tmp; - (void)strtoul(argv[arg]+1, &end_num, 10); + tmp = strtoul(argv[arg]+1, &end_num, 10); + (void)tmp; switch (end_num[0]) { case 0: continue;