1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Let's try __attribute__ this time for unused vars.

This commit is contained in:
Brenden Matthews 2009-08-03 13:48:18 -06:00
parent 3b13ae971e
commit aec2ac5448
2 changed files with 2 additions and 2 deletions

View File

@ -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_ */

View File

@ -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);