summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-04-22 21:08:51 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-04-22 21:08:51 -0700
commit888bec305043c6576d82f9988c63694b8133e3fd (patch)
tree2f58a6e213b49e5016abe502c4cd432f8db4487e
parentd0baac98ac8f673ec56bc8b0b1fd7d280831b015 (diff)
downloademacs-888bec305043c6576d82f9988c63694b8133e3fd.tar.gz
* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
Problem reported by Juanma Barranquero for Windows -Wunused-function.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/keyboard.c2
2 files changed, 7 insertions, 0 deletions
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 <eggert@cs.ucla.edu>
+
+ * 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 <eggert@cs.ucla.edu>
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