Do the UNUSED() thing another way.
authorBrenden Matthews <brenden@rty.ca>
Mon, 3 Aug 2009 19:34:47 +0000 (13:34 -0600)
committerBrenden Matthews <brenden@rty.ca>
Mon, 3 Aug 2009 19:34:47 +0000 (13:34 -0600)
src/conky.h

index b6bbfe9..9a1d4e1 100644 (file)
@@ -386,6 +386,6 @@ void set_update_interval(double interval);
 #define NOBATTERY 0
 
 /* to get rid of 'unused variable' warnings */
-#define UNUSED(a) if (a) {}
+#define UNUSED(a)  (void)a
 
 #endif /* _conky_h_ */