diff options
Diffstat (limited to 'zix')
-rw-r--r-- | zix/common.h | 8 |
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, |