From: nhmall Date: Wed, 26 Feb 2020 20:20:08 +0000 (-0500) Subject: fix warning observed on Mac OS X X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f430f8105a57cedeba445272bd9001f8a981af9;p=nethack fix warning observed on Mac OS X --- diff --git a/src/options.c b/src/options.c index 954821afa..bd1898661 100644 --- a/src/options.c +++ b/src/options.c @@ -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;