diff src/syssignal.h @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 13e47461d509
children 3580ae2ce979
line wrap: on
line diff
--- a/src/syssignal.h	Mon Sep 20 19:11:29 2004 +0000
+++ b/src/syssignal.h	Mon Sep 20 19:20:08 2004 +0000
@@ -148,6 +148,7 @@
   sigsuspend (&ES_mask);			\
 } while (0)
 #define EMACS_REESTABLISH_SIGNAL(sig, handler)
+#define SIG_ARG_MAYBE_UNUSED(decl) UNUSED (decl)
 
 #elif defined (HAVE_SIGBLOCK)
 
@@ -173,6 +174,7 @@
   sigpause (ES_mask & ~sigmask (sig));		\
 } while (0)
 #define EMACS_REESTABLISH_SIGNAL(sig, handler)
+#define SIG_ARG_MAYBE_UNUSED(decl) UNUSED (decl)
 
 #elif defined (HAVE_SIGHOLD)
 
@@ -188,6 +190,7 @@
 #define EMACS_UNBLOCK_ALL_SIGNALS() 0
 #define EMACS_WAIT_FOR_SIGNAL(sig) sigpause (sig)
 #define EMACS_REESTABLISH_SIGNAL(sig, handler)
+#define SIG_ARG_MAYBE_UNUSED(decl) UNUSED (decl)
 
 #elif defined (WIN32_NATIVE)
 
@@ -203,6 +206,7 @@
 #define EMACS_UNBLOCK_ALL_SIGNALS() 0
 #define EMACS_WAIT_FOR_SIGNAL(sig) mswindows_sigpause (sig)
 #define EMACS_REESTABLISH_SIGNAL(sig, handler)
+#define SIG_ARG_MAYBE_UNUSED(decl) UNUSED (decl)
 
 /* Defines that we need that aren't in the standard signal.h  */
 #define SIGHUP  1               /* Hang up */
@@ -227,6 +231,7 @@
   signal (sig, handler);				\
   errno = old_errno;					\
 } while (0)
+#define SIG_ARG_MAYBE_UNUSED(decl) decl
 
 /* Under SYSV, setting a signal handler for SIGCLD causes
    SIGCLD to immediately be sent if there any unwaited processes