shithub: aubio

Download patch

ref: 5c580324e33aee03f11f18c8856828c47b9a9f44
parent: 3ff50e5c1c8dd31182619057863bbdcda64f0373
author: Paul Brossier <piem@piem.org>
date: Wed Aug 12 14:07:37 EDT 2015

src/aubio_priv.h: no attributes for ms compilers

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -217,6 +217,11 @@
 #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 */