aboutsummaryrefslogtreecommitdiff
path: root/src/zexy.h
diff options
context:
space:
mode:
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))