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:
parent
3b13ae971e
commit
aec2ac5448
@ -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_ */
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user