From 4112e4fa36563699611c95d7a39664bcfa46a9b1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 26 Apr 2016 14:46:40 +0200 Subject: ifpps: Mark arg parameter of on_panic_handler() as unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following -Wunused-parameter warning: ifpps.c: In function ‘on_panic_handler’: ifpps.c:1128:36: warning: unused parameter ‘arg’ [-Wunused-parameter] static void on_panic_handler(void *arg) Signed-off-by: Tobias Klauser --- ifpps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifpps.c b/ifpps.c index 7c67103..732eccf 100644 --- a/ifpps.c +++ b/ifpps.c @@ -1125,7 +1125,7 @@ static void screen_update(WINDOW *screen, const char *ifname, const struct ifsta refresh(); } -static void on_panic_handler(void *arg) +static void on_panic_handler(void *arg __maybe_unused) { screen_end(); fprintf(stderr, "Please check for error message\n"); -- cgit v1.2.3-54-g00ecf