From e9d44aaf8285901f2f95daf7eba7d08f72cdcc53 Mon Sep 17 00:00:00 2001 From: Timo Wischer Date: Tue, 24 Oct 2017 13:10:28 +0200 Subject: Fix unused parameter warnings Signed-off-by: Timo Wischer --- src/zix/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/zix/common.h') 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 #endif +#ifdef __GNUC__ +#define ZIX_UNUSED __attribute__((__unused__)) +#else +#define ZIX_UNUSED +#endif + typedef enum { ZIX_STATUS_SUCCESS, ZIX_STATUS_ERROR, -- cgit v1.2.1