summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-26 14:46:40 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-26 14:47:11 +0200
commit4112e4fa36563699611c95d7a39664bcfa46a9b1 (patch)
tree53bfbd93985883d78252f9b0bba86c758aebbdb2
parent4cc9f0befecc409684adab0b2924a763ec31b807 (diff)
ifpps: Mark arg parameter of on_panic_handler() as unused
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 <tklauser@distanz.ch>
-rw-r--r--ifpps.c2
1 files changed, 1 insertions, 1 deletions
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 <stderr> for error message\n");