From: nhmall Date: Mon, 4 Apr 2022 14:35:43 +0000 (-0400) Subject: clear a warning: variable set but not used X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=303e34e5c61bff496f4180279ef775927c05983d;p=nethack clear a warning: variable set but not used makedefs.c:2125:12: warning: variable 'sum' set but not used [-Wunused-but-set-variable] int i, sum = 0; ^ 1 warning generated. --- diff --git a/util/makedefs.c b/util/makedefs.c index 29355cf6e..6f64341a8 100644 --- a/util/makedefs.c +++ b/util/makedefs.c @@ -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;