From 171edbec7fdbe59c23b89e22f0ec1a136c7b4b90 Mon Sep 17 00:00:00 2001 From: attila Date: Wed, 2 Oct 2024 16:38:14 +0200 Subject: [PATCH] MacOS: Suppress deprecation warnings related to NSUserNotification All NSUserNotification related classes have been deprecated in MacOS 11, and this class will have to be revamped to use the new User Notifications framework. We are suppressing the warnings for the time being. --- modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp b/modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp index 661fae799b..b1a3c81e83 100644 --- a/modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp +++ b/modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp @@ -35,6 +35,8 @@ namespace juce { +JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations") + namespace PushNotificationsDelegateDetailsOsx { using Action = PushNotifications::Notification::Action; @@ -532,4 +534,6 @@ private: PushNotifications::Settings settings; }; +JUCE_END_IGNORE_WARNINGS_GCC_LIKE + } // namespace juce