diff --git a/tests/clap-first-example/distortion_clap_entry.cpp b/tests/clap-first-example/distortion_clap_entry.cpp index 77c7aeed..ad152be0 100644 --- a/tests/clap-first-example/distortion_clap_entry.cpp +++ b/tests/clap-first-example/distortion_clap_entry.cpp @@ -41,9 +41,18 @@ static const void *entry_get_factory(const char *factory_id) return nullptr; } -CLAP_EXPORT const struct clap_plugin_entry clap_entry = { - CLAP_VERSION, - entry_init, - entry_deinit, - entry_get_factory -}; \ No newline at end of file + +extern "C" +{ +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wattributes" // other peoples errors are outside my scope +#endif + + const CLAP_EXPORT struct clap_plugin_entry clap_entry = {CLAP_VERSION, entry_init, entry_deinit, + entry_get_factory}; + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +} \ No newline at end of file