mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
wmaker: Marked args as unused for compiler in process death handlers
When a sub-process terminate, the function to process that event is defined using a callback mechanism, which means having a fixed argument list for that application function. It is then correct to not use all the arguments, 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
bd77216edf
commit
7c02d5f1c5
@@ -2903,6 +2903,10 @@ static void trackDeadProcess(pid_t pid, unsigned int status, void *client_data)
|
||||
{
|
||||
WScreen *scr = (WScreen *) client_data;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) pid;
|
||||
(void) status;
|
||||
|
||||
close(scr->helper_fd);
|
||||
scr->helper_fd = 0;
|
||||
scr->helper_pid = 0;
|
||||
|
||||
@@ -265,6 +265,9 @@ static void shellCommandHandler(pid_t pid, unsigned int status, void *client_dat
|
||||
{
|
||||
_tuple *data = (_tuple *) client_data;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) pid;
|
||||
|
||||
if (status == 127) {
|
||||
char *buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user