* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Apr 2012 04:08:51 +0000 (21:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Apr 2012 04:08:51 +0000 (21:08 -0700)
Problem reported by Juanma Barranquero for Windows -Wunused-function.

src/ChangeLog
src/keyboard.c

index 410e6e0..825211a 100644 (file)
@@ -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).
index d55a726..6fa0e4a 100644 (file)
@@ -7169,6 +7169,7 @@ tty_read_avail_input (struct terminal *terminal,
   return nread;
 }
 \f
+#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