]> granicus.if.org Git - nethack/commitdiff
fix warning observed on Mac OS X
authornhmall <nhmall@nethack.org>
Wed, 26 Feb 2020 20:20:08 +0000 (15:20 -0500)
committernhmall <nhmall@nethack.org>
Wed, 26 Feb 2020 20:20:08 +0000 (15:20 -0500)
src/options.c

index 954821afaed5ebed45526502d9ce78d13ad8db75..bd18986614e5e796b8823118baf0385862d4b07f 100644 (file)
@@ -1462,10 +1462,19 @@ char *op UNUSED;
 
 int
 optfn_MACgraphics(optidx, req, negated, opts, op)
-int optidx, req;
+#if defined(MAC_GRAPHICS_ENV) && defined(BACKWARD_COMPAT)
+int optidx;
+int req;
 boolean negated;
 char *opts;
 char *op;
+#else
+int optidx UNUSED;
+int req;
+boolean negated UNUSED;
+char *opts UNUSED;
+char *op UNUSED;
+#endif
 {
 #if defined(MAC_GRAPHICS_ENV) && defined(BACKWARD_COMPAT)
     boolean badflag = FALSE;