summaryrefslogtreecommitdiffstats
path: root/zix/common.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-13 10:45:33 +0100
committerDavid Robillard <d@drobilla.net>2018-11-13 10:45:33 +0100
commit5944e39578b2a5475e74186a1a965b14a9492d97 (patch)
tree35aad3c48773ab7368c9af49c566105e40cde29a /zix/common.h
parentc7f2e601314debd0158c5a3c41b67d0fd8c5d76a (diff)
downloadzix-5944e39578b2a5475e74186a1a965b14a9492d97.tar.gz
zix-5944e39578b2a5475e74186a1a965b14a9492d97.tar.bz2
zix-5944e39578b2a5475e74186a1a965b14a9492d97.zip
Add ZIX_UNUSED macro
Diffstat (limited to 'zix/common.h')
-rw-r--r--zix/common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/zix/common.h b/zix/common.h
index 18d27e4..71e8a22 100644
--- a/zix/common.h
+++ b/zix/common.h
@@ -1,5 +1,5 @@
/*
- Copyright 2011 David Robillard <http://drobilla.net>
+ Copyright 2016 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -52,6 +52,12 @@ extern "C" {
# include <stdbool.h>
#endif
+#ifdef __GNUC__
+#define ZIX_UNUSED __attribute__((__unused__))
+#else
+#define ZIX_UNUSED
+#endif
+
typedef enum {
ZIX_STATUS_SUCCESS,
ZIX_STATUS_ERROR,