aboutsummaryrefslogtreecommitdiff
path: root/src/zexy.h
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-06-03 16:07:32 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-06-03 16:07:32 +0000
commitfc89459187380d862daf249c95ed389e3fb6c0d3 (patch)
tree5dda59b117004068bba15c6c54d14046acced4b3 /src/zexy.h
parente7f62cc177e6e3eb2e78ac5c6d5164782054d8ad (diff)
declare unused parameters as such
rather than doing a dummy-usage svn path=/trunk/externals/zexy/; revision=17144
Diffstat (limited to 'src/zexy.h')
-rw-r--r--src/zexy.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zexy.h b/src/zexy.h
index b3b8c72..42541a9 100644
--- a/src/zexy.h
+++ b/src/zexy.h
@@ -100,7 +100,14 @@
# endif /* OSX-10.3 */
#endif /* APPLE */
-#define ZEXY_USEVAR(x) x=x
+
+#ifdef __GNUC__
+# define UNUSED(x) ZUNUSED_ ## x __attribute__((__unused__))
+# define UNUSED_FUNCTION(x) __attribute__((__unused__)) ZUNUSEDFUN_ ## x
+#else
+# define UNUSED(x) ZUNUSED_ ## x
+# define UNUSED_FUNCTION(x) ZUNUSEDFUN_ ## x
+#endif
#define ZEXY_TYPE_EQUAL(type1, type2) (sizeof(type1) == sizeof(type2))