From e02039b3fd1dfad26608600d8752d14240ce5ed9 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 10 Jun 2024 10:43:27 -0400 Subject: [PATCH] Grr --- .../distortion_clap_entry.cpp | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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