From 5f430f8105a57cedeba445272bd9001f8a981af9 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 26 Feb 2020 15:20:08 -0500 Subject: [PATCH] fix warning observed on Mac OS X --- src/options.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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;