From 8b1deacfc4bdd43264ceb5b2654543347cda6ba8 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 10 May 2010 12:23:37 +0200 Subject: [PATCH] sn-evolution: Mark appropriate arguments as unused. --- src/sn-evolution.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sn-evolution.c b/src/sn-evolution.c index 6d06850..d1b74fe 100644 --- a/src/sn-evolution.c +++ b/src/sn-evolution.c @@ -46,6 +46,10 @@ #include "sn_network.h" #include "sn_random.h" +#if !defined(__GNUC__) || !__GNUC__ +# define __attribute__(x) /**/ +#endif + /* Yes, this is ugly, but the GNU libc doesn't export it with the above flags. * */ char *strdup (const char *s); @@ -66,7 +70,7 @@ static int evolution_threads_num = 4; static int do_loop = 0; -static void sigint_handler (int signal) +static void sigint_handler (int signal __attribute__((unused))) { do_loop++; } /* void sigint_handler */ @@ -259,7 +263,7 @@ static int create_offspring (void) return (0); } /* int create_offspring */ -static void *evolution_thread (void *arg) +static void *evolution_thread (void *arg __attribute__((unused))) { while (do_loop == 0) { -- 2.11.0