Add ifdefs around #pragma GCC diagnostic

This commit is contained in:
Jonas Kvinge
2023-06-15 20:10:25 +02:00
parent ec839e6aae
commit f467331934
3 changed files with 12 additions and 0 deletions

View File

@@ -261,10 +261,14 @@ QDebug operator<<(QDebug dbg, NSObject *object) {
[self setDelegate:delegate_];
// FIXME
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
[[NSUserNotificationCenter defaultUserNotificationCenter]setDelegate:delegate_];
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}