INN commit: trunk/innd (proc.c)

INN Commit rra at isc.org
Thu May 14 13:21:06 UTC 2015


    Date: Thursday, May 14, 2015 @ 06:21:06
  Author: iulius
Revision: 9858

Fixed Clang warning for an unused variable

Modified:
  trunk/innd/proc.c

--------+
 proc.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: proc.c
===================================================================
--- proc.c	2015-05-14 13:19:07 UTC (rev 9857)
+++ proc.c	2015-05-14 13:21:06 UTC (rev 9858)
@@ -47,18 +47,22 @@
 }
 
 
+#ifdef HAVE_SIGACTION
+#define NO_SIGACTION_UNUSED UNUSED
+#else
+#define NO_SIGACTION_UNUSED
+#endif
+
 /*
 **  Signal handler that collects the processes, then resets the signal.
 */
 static void
-PROCcatchsignal(int s)
+PROCcatchsignal(int s NO_SIGACTION_UNUSED)
 {
     PROCreap();
 
 #ifndef HAVE_SIGACTION
     xsignal(s, PROCcatchsignal);
-#else
-    s = s;			/* ARGSUSED */
 #endif
 }
 



More information about the inn-committers mailing list