Mercurial > hg > vamp-aubio-plugins
comparison plugins/Types.h @ 134:767ead1cee18
plugins/: unused attribute only for gcc
author | Paul Brossier <piem@piem.org> |
---|---|
date | Fri, 22 Jul 2016 12:19:06 +0200 |
parents | f80b207ccd15 |
children | 4e37f52e78df |
comparison
equal
deleted
inserted
replaced
133:f8518e1e57e3 | 134:767ead1cee18 |
---|---|
23 | 23 |
24 */ | 24 */ |
25 | 25 |
26 #ifndef _ONSET_TYPE_H_ | 26 #ifndef _ONSET_TYPE_H_ |
27 #define _ONSET_TYPE_H_ | 27 #define _ONSET_TYPE_H_ |
28 | |
29 /** silence unused parameter warning by adding an attribute */ | |
30 #if defined(__GNUC__) | |
31 #define UNUSED __attribute__((unused)) | |
32 #else | |
33 #define UNUSED | |
34 #endif | |
28 | 35 |
29 // Note: the enum values in this header are ordered to match the Vamp | 36 // Note: the enum values in this header are ordered to match the Vamp |
30 // plugin parameter values in earlier versions of this plugin set, to | 37 // plugin parameter values in earlier versions of this plugin set, to |
31 // avoid breaking stored parameter settings that use the parameter's | 38 // avoid breaking stored parameter settings that use the parameter's |
32 // numerical value. Any additional values must be added after all | 39 // numerical value. Any additional values must be added after all |