Re-fix compilation of src/modcmd.c.
authorMichael Poole <mdpoole@troilus.org>
Sun, 30 Oct 2011 17:32:11 +0000 (13:32 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 30 Oct 2011 17:32:11 +0000 (13:32 -0400)
(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

index 2417fdd3806d8b623ce7bfa508470f840b477cf3..9e7d15f72325673d737b473c4c624c1179a0e377 100644 (file)
@@ -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;