From: nhmall Date: Sat, 10 Oct 2020 20:41:09 +0000 (-0400) Subject: more warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e66cbd78171e3898397ffffda805eec6f7d5e10;p=nethack more warnings --- diff --git a/src/display.c b/src/display.c index 89e7c95a5..1c4707b04 100644 --- a/src/display.c +++ b/src/display.c @@ -2078,7 +2078,7 @@ set_twall(x0, y0, x1, y1, x2, y2, x3, y3) #ifdef WA_VERBOSE int x0, y0; /* used #if WA_VERBOSE */ #else -int x0, y0 UNUSED; +int x0 UNUSED, y0 UNUSED; #endif int x1, y1, x2, y2, x3, y3; { diff --git a/src/options.c b/src/options.c index ac50af936..39e69c9f1 100644 --- a/src/options.c +++ b/src/options.c @@ -7586,7 +7586,7 @@ doset() /* changing options via menu by Per Liboriussen */ (void) parseoptions(buf, setinitial, fromfile); } else { /* compound option */ - int k = opt_indx, reslt; + int k = opt_indx, reslt UNUSED; if (allopt[k].has_handler && allopt[k].optfn) { reslt = (*allopt[k].optfn)(allopt[k].idx, do_handler,