Ignore NSUserNotificationCenter deprecation

This commit is contained in:
Jonas Kvinge
2020-12-22 20:37:39 +01:00
parent ad469e4f61
commit 47fd30c23f

View File

@@ -216,7 +216,11 @@ QDebug operator<<(QDebug dbg, NSObject* object) {
[delegate_ setShortcutHandler:shortcut_handler_]; [delegate_ setShortcutHandler:shortcut_handler_];
[self setDelegate:delegate_]; [self setDelegate:delegate_];
// FIXME
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
[ [NSUserNotificationCenter defaultUserNotificationCenter]setDelegate:delegate_]; [ [NSUserNotificationCenter defaultUserNotificationCenter]setDelegate:delegate_];
#pragma GCC diagnostic pop
} }