projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ff50e5
)
src/aubio_priv.h: no attributes for ms compilers
author
Paul Brossier
<piem@piem.org>
Wed, 12 Aug 2015 16:07:37 +0000
(18:07 +0200)
committer
Paul Brossier
<piem@piem.org>
Wed, 12 Aug 2015 16:07:37 +0000
(18:07 +0200)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
b19520b
..
81cf24a
100644
(file)
--- 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))
#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))
#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
#endif /* _AUBIO__PRIV_H */
#endif /* _AUBIO__PRIV_H */