mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-14 00:02:10 +02:00
Silence warnings on decltype() with Wine 5.22
There were already similar warnings on 32-bit winegcc, but now it also happens on the 64-bit version. Instead of adding `-Wno-ignored-attributes` we'll just sprinkle some warning ignores here and there to prevent any other surprises.
This commit is contained in:
@@ -197,6 +197,10 @@ class Editor {
|
||||
*/
|
||||
const WindowClass window_class;
|
||||
|
||||
// FIXME: This emits `-Wignored-attributes` as of Wine 5.22
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||
|
||||
/**
|
||||
* The handle for the window created through Wine that the plugin uses to
|
||||
* embed itself in.
|
||||
@@ -216,6 +220,8 @@ class Editor {
|
||||
std::unique_ptr<std::remove_pointer_t<HWND>, decltype(&DestroyWindow)>>
|
||||
win32_child_handle;
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/**
|
||||
* The Win32 API will block the `DispatchMessage` call when opening e.g. a
|
||||
* dropdown, but it will still allow timers to be run so the GUI can still
|
||||
|
||||
Reference in New Issue
Block a user