mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
WPrefs: 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
bc5985e824
commit
63037bf426
@@ -45,6 +45,9 @@ static int DeadChildrenCount = 0;
|
||||
|
||||
static void wAbort(Bool foo)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) foo;
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user