[aubio_priv.h] add AUBIO_UNUSED
authorPaul Brossier <piem@piem.org>
Mon, 27 Dec 2021 00:40:18 +0000 (19:40 -0500)
committerPaul Brossier <piem@piem.org>
Wed, 29 Dec 2021 16:52:03 +0000 (11:52 -0500)
src/aubio_priv.h

index ae51822..6aee913 100644 (file)
@@ -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 <assert.h>
 #define AUBIO_ASSERT(x) assert(x)
 #else