From 928534509fff41b76a328aa6677f81f508bc2076 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 27 Jun 2019 17:42:56 -0700 Subject: [PATCH] UNIX|VMS compile warning So no one on Unix or Unix-like ever builds without tty support? options.c:694:11: warning: unused variable 'opts' [-Wunused-variable] Noticed when producing a curses-only binary to verify that erase_char and kill_char weren't relying on tty being present. --- src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index ef1081172..3155275ec 100644 --- a/src/options.c +++ b/src/options.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 options.c $NHDT-Date: 1561427671 2019/06/25 01:54:31 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.366 $ */ +/* NetHack 3.6 options.c $NHDT-Date: 1561682566 2019/06/28 00:42:46 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.367 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2008. */ /* NetHack may be freely redistributed. See license for details. */ @@ -690,7 +690,7 @@ initoptions() void initoptions_init() { -#if defined(UNIX) || defined(VMS) +#if (defined(UNIX) || defined(VMS)) && defined(TTY_GRAPHICS) char *opts; #endif int i;