diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2013-06-03 16:07:32 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2013-06-03 16:07:32 +0000 |
commit | fc89459187380d862daf249c95ed389e3fb6c0d3 (patch) | |
tree | 5dda59b117004068bba15c6c54d14046acced4b3 /src/zexy.h | |
parent | e7f62cc177e6e3eb2e78ac5c6d5164782054d8ad (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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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)) |