From e284d9c7c8a00e9ec6d70087df23e920fb45d35f Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Fri, 21 Nov 2014 11:40:49 +0100 Subject: [PATCH] gmio_core: add utility macro GMIO_UNUSED() --- src/gmio_core/global.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gmio_core/global.h b/src/gmio_core/global.h index b057aaf..a5d3b7c 100644 --- a/src/gmio_core/global.h +++ b/src/gmio_core/global.h @@ -75,6 +75,9 @@ typedef float gmio_real32_t; /*! Typedef for 64bit real type (double) */ typedef double gmio_real64_t; +/*! Tells the compiler that a parameter is not used in the body of a function */ +#define GMIO_UNUSED(x) (void)x; + #ifndef GMIO_INLINE # if defined(__GNUC__) # define GMIO_INLINE __inline__ /* Compatible with C90 */