]> granicus.if.org Git - nethack/commitdiff
clear a warning: variable set but not used
authornhmall <nhmall@nethack.org>
Mon, 4 Apr 2022 14:35:43 +0000 (10:35 -0400)
committernhmall <nhmall@nethack.org>
Mon, 4 Apr 2022 14:35:43 +0000 (10:35 -0400)
makedefs.c:2125:12: warning: variable 'sum' set but not used
[-Wunused-but-set-variable]
    int i, sum = 0;
           ^
    1 warning generated.

util/makedefs.c

index 29355cf6ee4a5b3ad2523d24b524a3bb077b65bd..6f64341a81e261e07b48a69fa464e9e4ddd2ede0 100644 (file)
@@ -2122,7 +2122,7 @@ macronamelimit(char *name, int pref)
 void
 do_objs(void)
 {
-    int i, sum = 0;
+    int i, sum UNUSED = 0;
     char *c, *objnam;
     int nspell = 0;
     int prefix = 0;