From 3ba54ed0d6da517e08858f9592c034f14a7d348f Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 13 Oct 2013 22:44:14 +0200 Subject: [PATCH] wmaker: Marked args as unused for compiler in signal handlers When the process receive a signal, a callback function is used, which means having a fixed argument list for that application function. It is then correct to not use the argument, so this patch adds the appropriate stuff to avoid a false report from compiler. Signed-off-by: Christophe CURIS --- src/startup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/startup.c b/src/startup.c index 78422e1a..8971789e 100644 --- a/src/startup.c +++ b/src/startup.c @@ -201,6 +201,9 @@ static RETSIGTYPE buryChild(int foo) int save_errno = errno; sigset_t sigs; + /* Parameter not used, but tell the compiler that it is ok */ + (void) foo; + sigfillset(&sigs); /* Block signals so that NotifyDeadProcess() doesn't get fux0red */ sigprocmask(SIG_BLOCK, &sigs, NULL);