From: Paul Brossier Date: Wed, 12 Aug 2015 16:07:37 +0000 (+0200) Subject: src/aubio_priv.h: no attributes for ms compilers X-Git-Tag: 0.4.4~302^2~3 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=5c580324e33aee03f11f18c8856828c47b9a9f44;ds=sidebyside src/aubio_priv.h: no attributes for ms compilers --- 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 */