diff src/console.c @ 2340:91a83e231f92

[xemacs-hg @ 2004-10-19 17:18:59 by james] Mark more unused parameters.
author james
date Tue, 19 Oct 2004 17:19:07 +0000
parents 04bc9d2f42c7
children ecf1ebac70d8
line wrap: on
line diff
--- a/src/console.c	Mon Oct 18 21:51:40 2004 +0000
+++ b/src/console.c	Tue Oct 19 17:19:07 2004 +0000
@@ -43,6 +43,12 @@
 #include "console-tty-impl.h"
 #endif
 
+#ifdef HAVE_TTY
+#define USED_IF_TTY(decl) decl
+#else
+#define USED_IF_TTY(decl) UNUSED (decl)
+#endif
+
 Lisp_Object Vconsole_list, Vselected_console;
 
 Lisp_Object Vcreate_console_hook, Vdelete_console_hook;
@@ -1024,7 +1030,7 @@
 Some operating systems cannot stop processes and resume them later.
 On such systems, who knows what will happen.
 */
-       (console))
+       (USED_IF_TTY (console)))
 {
 #ifdef HAVE_TTY
   struct console *con = decode_console (console);
@@ -1061,7 +1067,7 @@
 Re-initialize a previously suspended console.
 For tty consoles, do stuff to the tty to make it sane again.
 */
-       (console))
+       (USED_IF_TTY (console)))
 {
 #ifdef HAVE_TTY
   struct console *con = decode_console (console);
@@ -1109,7 +1115,7 @@
  the selected console.
 See also `current-input-mode'.
 */
-       (UNUSED (ignored), flow, meta, quit, console))
+       (UNUSED (ignored), USED_IF_TTY (flow), meta, quit, console))
 {
   struct console *con = decode_console (console);
   int meta_key = (!CONSOLE_TTY_P (con) ? 1 :