]> granicus.if.org Git - nethack/commitdiff
more warnings
authornhmall <nhmall@nethack.org>
Sat, 10 Oct 2020 20:41:09 +0000 (16:41 -0400)
committernhmall <nhmall@nethack.org>
Sat, 10 Oct 2020 20:41:09 +0000 (16:41 -0400)
src/display.c
src/options.c

index 89e7c95a5e0957469fb526804cfe12f0e4badb5e..1c4707b0455839bf69023d6f3cfe178aa8ad63a3 100644 (file)
@@ -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;
 {
index ac50af93653bfb8c7bff45a93d20ffd91080622d..39e69c9f1696941ee405ee801d68cc546a96bf75 100644 (file)
@@ -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,