From: PatR Date: Fri, 25 Dec 2020 01:53:57 +0000 (-0800) Subject: tty: winch_handler vs NO_SIGNAL X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a2afd21d47eea6fd080bf8d1f7dc7f503149372;p=nethack tty: winch_handler vs NO_SIGNAL While testing something unrelated, I built with NO_SIGNAL defined and winch_handler() caused an unused function warning. --- diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 05bcfbca4..a0ebef942 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -1,4 +1,4 @@ - /* NetHack 3.7 wintty.c $NHDT-Date: 1606011660 2020/11/22 02:21:00 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.263 $ */ + /* NetHack 3.7 wintty.c $NHDT-Date: 1608861214 2020/12/25 01:53:34 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.264 $ */ /* Copyright (c) David Cohrs, 1991 */ /* NetHack may be freely redistributed. See license for details. */ @@ -294,7 +294,7 @@ const char *mesg; /*NOTREACHED*/ } -#if defined(SIGWINCH) && defined(CLIPPING) +#if defined(SIGWINCH) && defined(CLIPPING) && !defined(NO_SIGNAL) static void FDECL(winch_handler, (int)); /* @@ -369,7 +369,7 @@ int sig_unused UNUSED; } } } -#endif +#endif /* SIGWINCH && CLIPPING && !NO_SIGNAL */ /* destroy and recreate status window; extracted from winch_handler() and augmented for use by tty_preference_update() */