From 201b0be0c0611e27c4fc4954d6f738a0150ee70f Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 9 Feb 2010 21:53:56 +0100 Subject: suppress unused parameter warning This solution was pointed out by corvid and Jorge. --- dpid/dpid.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dpid') diff --git a/dpid/dpid.c b/dpid/dpid.c index b0ca8420..2337d5d6 100644 --- a/dpid/dpid.c +++ b/dpid/dpid.c @@ -100,11 +100,10 @@ void free_services_list(Dlist *s_list) } /*! Signal handler for SIGINT, SIGQUIT, and SIGTERM. Calls cleanup - * \todo what is the most portable way to ignore the signo argument of - * without generating a warning? Is "int signo __unused" gcc specific? */ -static void terminator() +static void terminator(int sig) { + (void) sig; /* suppress unused parameter warning */ cleanup(); _exit(0); } -- cgit v1.2.3