From 888bec305043c6576d82f9988c63694b8133e3fd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 22 Apr 2012 21:08:51 -0700 Subject: [PATCH] * keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO. Problem reported by Juanma Barranquero for Windows -Wunused-function. --- src/ChangeLog | 5 +++++ src/keyboard.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 410e6e01f45..825211aa8ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-04-23 Paul Eggert + + * keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO. + Problem reported by Juanma Barranquero for Windows -Wunused-function. + 2012-04-22 Paul Eggert Modernize and clean up gmalloc.c to assume C89 (Bug#9119). diff --git a/src/keyboard.c b/src/keyboard.c index d55a726827e..6fa0e4afc3f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7169,6 +7169,7 @@ tty_read_avail_input (struct terminal *terminal, return nread; } +#if defined SYNC_INPUT || defined SIGIO static void handle_async_input (void) { @@ -7195,6 +7196,7 @@ handle_async_input (void) --handling_signal; #endif } +#endif /* SYNC_INPUT || SIGIO */ #ifdef SYNC_INPUT void -- 2.39.2