From: Christophe CURIS <[email protected]>

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 <[email protected]>
---
 src/defaults.c | 4 ++++
 src/main.c     | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/src/defaults.c b/src/defaults.c
index a6fb974..0514224 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -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;
diff --git a/src/main.c b/src/main.c
index ae89eff..03c126c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
 
-- 
1.8.4.rc3


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

Reply via email to