From aec2ac5448383b11b24f14b3cdcb0e24c9b65c39 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Mon, 3 Aug 2009 13:48:18 -0600 Subject: [PATCH] Let's try __attribute__ this time for unused vars. --- src/conky.h | 1 + src/weather.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conky.h b/src/conky.h index 9a1d4e18..d88e3c5c 100644 --- a/src/conky.h +++ b/src/conky.h @@ -387,5 +387,6 @@ void set_update_interval(double interval); /* to get rid of 'unused variable' warnings */ #define UNUSED(a) (void)a +#define UNUSED_ATTR __attribute__ ((unused)) #endif /* _conky_h_ */ diff --git a/src/weather.c b/src/weather.c index 1e432837..de496e14 100644 --- a/src/weather.c +++ b/src/weather.c @@ -781,11 +781,10 @@ void load_xoap_keys(void) } #endif /* XOAP */ -int process_weather_uri(char *uri, char *locID, int dayf) +int process_weather_uri(char *uri, char *locID, int dayf UNUSED_ATTR) { /* locID MUST BE upper-case */ char *tmp_p = locID; - UNUSED(dayf); /* make gcc shut up */ while (*tmp_p) { *tmp_p = toupper(*tmp_p);