tty: winch_handler vs NO_SIGNAL

While testing something unrelated, I built with NO_SIGNAL
defined and winch_handler() caused an unused function warning.
This commit is contained in:
PatR
2020-12-24 17:53:57 -08:00
parent 5552f141ba
commit 1a2afd21d4

View File

@@ -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() */