From: Christophe CURIS <[email protected]>

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 <[email protected]>
---
 src/startup.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/startup.c b/src/startup.c
index d81f79b..aad77ed 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);
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to