Core: Integrate warning suppression macro helpers
This commit is contained in:
@ -126,11 +126,7 @@ static bool default_input_device_changed = false;
|
||||
static int output_reinit_countdown = 0;
|
||||
static int input_reinit_countdown = 0;
|
||||
|
||||
// Silence warning due to a COM API weirdness (GH-35194).
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
#endif
|
||||
GODOT_GCC_WARNING_PUSH_AND_IGNORE("-Wnon-virtual-dtor") // Silence warning due to a COM API weirdness (GH-35194).
|
||||
|
||||
class CMMNotificationClient : public IMMNotificationClient {
|
||||
LONG _cRef = 1;
|
||||
@ -196,9 +192,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
GODOT_GCC_WARNING_POP
|
||||
|
||||
static CMMNotificationClient notif_client;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user