From e09ff240f0c05a65aa97ca7fcf540be99855f3a2 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Sat, 3 Oct 2009 21:32:07 +0200 Subject: [PATCH] dma: don't use __unused __unused avoids a gcc warning that the parameter is not being used, but this does not exist in other systems or is overloaded with a different meaning. Instead simply use a cast to (void) to silence gcc. --- libexec/dma/net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/dma/net.c b/libexec/dma/net.c index e3c563dfd3..607b992c1e 100644 --- a/libexec/dma/net.c +++ b/libexec/dma/net.c @@ -70,8 +70,9 @@ ssl_errstr(void) } static void -sig_alarm(int signo __unused) +sig_alarm(int signo) { + (void)signo; /* so that gcc doesn't complain */ longjmp(timeout_alarm, 1); } -- 2.11.4.GIT