collectd-tg: fix warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:57:00 +0000 (14:57 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:57:00 +0000 (14:57 +0200)
src/collectd-tg.c:98:32: warning: unused parameter 'signal' [-Wunused-parameter]
static void signal_handler(int signal) /* {{{ */
                               ^

src/collectd-tg.c

index 9357ce3..4669c65 100644 (file)
@@ -95,7 +95,7 @@ __attribute__((noreturn)) static void exit_usage(int exit_status) /* {{{ */
   exit(exit_status);
 } /* }}} void exit_usage */
 
-static void signal_handler(int signal) /* {{{ */
+static void signal_handler(int __attribute__((unused)) signal) /* {{{ */
 {
   loop = false;
 } /* }}} void signal_handler */