From 07c70b4b9e76838177d9c9907d04000780e25c4d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 26 Dec 2021 19:40:18 -0500 Subject: [PATCH] [aubio_priv.h] add AUBIO_UNUSED --- src/aubio_priv.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aubio_priv.h b/src/aubio_priv.h index ae518229..6aee913a 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -407,6 +407,12 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...); #endif /* __STRICT_ANSI__ */ #if defined(DEBUG) +#define AUBIO_UNUSED(x) {} +#else +#define AUBIO_UNUSED(x) (void)(x) +#endif + +#if defined(DEBUG) #include #define AUBIO_ASSERT(x) assert(x) #else -- 2.11.0