From 63037bf42683abcf9b0472b02720e838cffd3b4c Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 1 Nov 2013 16:06:49 +0100 Subject: [PATCH] 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 --- WPrefs.app/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WPrefs.app/main.c b/WPrefs.app/main.c index d6b3946f..08dcb58a 100644 --- a/WPrefs.app/main.c +++ b/WPrefs.app/main.c @@ -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); }