]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 410e6e01f453ecfead3e86d7fd635322597b95ef..825211aa8cee683b8e494d0a8d605caf32b15a1e 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 d55a726827e0c90b9085df697128e03f4ea617bb..6fa0e4afc3f8df8c7c63dedc4d0609d73799ddd4 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