From 3c70e89e7cc738f30cfbd1a5530507af41fc9ed6 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 30 Oct 2011 13:32:11 -0400 Subject: [PATCH] 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. --- src/modcmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1