mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
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 <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
7c02d5f1c5
commit
3ba54ed0d6
@@ -201,6 +201,9 @@ static RETSIGTYPE buryChild(int foo)
|
|||||||
int save_errno = errno;
|
int save_errno = errno;
|
||||||
sigset_t sigs;
|
sigset_t sigs;
|
||||||
|
|
||||||
|
/* Parameter not used, but tell the compiler that it is ok */
|
||||||
|
(void) foo;
|
||||||
|
|
||||||
sigfillset(&sigs);
|
sigfillset(&sigs);
|
||||||
/* Block signals so that NotifyDeadProcess() doesn't get fux0red */
|
/* Block signals so that NotifyDeadProcess() doesn't get fux0red */
|
||||||
sigprocmask(SIG_BLOCK, &sigs, NULL);
|
sigprocmask(SIG_BLOCK, &sigs, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user