1
0
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:
Christophe CURIS
2013-10-13 22:44:13 +02:00
committed by Carlos R. Mafra
parent bd77216edf
commit 7c02d5f1c5
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;