From 5e6308b0f5d1c79a42f2812147fcb2deedf3f4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 24 Apr 2025 14:54:26 +0200 Subject: [PATCH] Silence NSUserNotification{Center} deprecation warnings We know it's deprecated, and have a bug report to track it, so we don't need a compilation warning on each build. Task-number: QTBUG-110998 Change-Id: Icf5a670532cd923dc90d594621b38dbb6d344e2d Reviewed-by: Volker Hilsheimer --- src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm b/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm index 05e3c67528e..ddd97f9a1af 100644 --- a/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm +++ b/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm @@ -23,9 +23,9 @@ #include "qcocoascreen.h" #include -#warning NSUserNotification was deprecated in macOS 11. \ -We should be using UserNotifications.framework instead. \ -See QTBUG-110998 for more information. +// NSUserNotification was deprecated in macOS 11. +// We should be using UserNotifications.framework instead. +// See QTBUG-110998 for more information. #define NSUserNotificationCenter QT_IGNORE_DEPRECATIONS(NSUserNotificationCenter) #define NSUserNotification QT_IGNORE_DEPRECATIONS(NSUserNotification)