From 5944e39578b2a5475e74186a1a965b14a9492d97 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 13 Nov 2018 10:45:33 +0100 Subject: Add ZIX_UNUSED macro --- zix/common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'zix/common.h') 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 + Copyright 2016 David Robillard 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 #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