mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-15 07:53:55 +02:00
Globally ignore attribute warnings on Wine side
These started happening after Wine 5.12, and it doesn't look like it's going to change.
This commit is contained in:
@@ -110,17 +110,11 @@ struct ClapPluginInstance {
|
||||
*/
|
||||
std::optional<Editor> editor;
|
||||
|
||||
// FIXME: This emits `-Wignored-attributes` as of Wine 5.22
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||
|
||||
/**
|
||||
* The plugin object. The plugin gets destroyed together with this struct.
|
||||
*/
|
||||
std::unique_ptr<const clap_plugin, decltype(clap_plugin::destroy)> plugin;
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/**
|
||||
* Contains the plugin's supported extensions. Initialized after the host
|
||||
* calls `clap_plugin::init()`.
|
||||
@@ -357,18 +351,12 @@ class ClapBridge : public HostBridge {
|
||||
*/
|
||||
Configuration config_;
|
||||
|
||||
// FIXME: This emits `-Wignored-attributes` as of Wine 5.22
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||
|
||||
/**
|
||||
* The shared library handle of the CLAP plugin.
|
||||
*/
|
||||
std::unique_ptr<std::remove_pointer_t<HMODULE>, decltype(&FreeLibrary)>
|
||||
plugin_handle_;
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/**
|
||||
* The windows CLAP plugin's entry point. Initialized in the constructor,
|
||||
* and deinitialized again when the entry point gets dropped.
|
||||
|
||||
@@ -183,18 +183,12 @@ class Vst2Bridge : public HostBridge {
|
||||
*/
|
||||
ScopedValueCache<int> process_level_cache_;
|
||||
|
||||
// FIXME: This emits `-Wignored-attributes` as of Wine 5.22
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||
|
||||
/**
|
||||
* The shared library handle of the VST2 plugin.
|
||||
*/
|
||||
std::unique_ptr<std::remove_pointer_t<HMODULE>, decltype(&FreeLibrary)>
|
||||
plugin_handle_;
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/**
|
||||
* The loaded plugin's `AEffect` struct, obtained using the above library
|
||||
* handle.
|
||||
|
||||
Reference in New Issue
Block a user