From 5c580324e33aee03f11f18c8856828c47b9a9f44 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 12 Aug 2015 18:07:37 +0200 Subject: [PATCH] src/aubio_priv.h: no attributes for ms compilers --- src/aubio_priv.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/aubio_priv.h b/src/aubio_priv.h index b19520bd..81cf24aa 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -217,6 +217,11 @@ typedef enum { #define SAFE_LOG10(f) LOG10(CEIL_DENORMAL(f)) #define SAFE_LOG(f) LOG(CEIL_DENORMAL(f)) +/** silence unused parameter warning by adding an attribute */ +#if defined(__GNUC__) #define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif #endif /* _AUBIO__PRIV_H */ -- 2.11.0