aboutsummaryrefslogtreecommitdiffstats
path: root/src/zix/common.h
diff options
context:
space:
mode:
authorTimo Wischer <twischer@de.adit-jv.com>2017-10-24 13:10:28 +0200
committerDavid Robillard <d@drobilla.net>2018-09-24 19:08:41 +0200
commite9d44aaf8285901f2f95daf7eba7d08f72cdcc53 (patch)
tree0e06e9a3241d15692bc419028d00f30c9cef570a /src/zix/common.h
parent6f22ee045e7535c5961374d57453c39d1cee224c (diff)
downloadjalv-e9d44aaf8285901f2f95daf7eba7d08f72cdcc53.tar.gz
jalv-e9d44aaf8285901f2f95daf7eba7d08f72cdcc53.tar.bz2
jalv-e9d44aaf8285901f2f95daf7eba7d08f72cdcc53.zip
Fix unused parameter warnings
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Diffstat (limited to 'src/zix/common.h')
-rw-r--r--src/zix/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zix/common.h b/src/zix/common.h
index ffeeea1..9318d0e 100644
--- a/src/zix/common.h
+++ b/src/zix/common.h
@@ -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,