Skip to content

Commit

Permalink
MacOS: Suppress deprecation warnings related to NSUserNotification
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
szarvas committed Oct 3, 2024
1 parent 46eed81 commit 171edbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
namespace juce
{

JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")

namespace PushNotificationsDelegateDetailsOsx
{
using Action = PushNotifications::Notification::Action;
Expand Down Expand Up @@ -532,4 +534,6 @@ struct PushNotifications::Pimpl : private PushNotificationsDelegate
PushNotifications::Settings settings;
};

JUCE_END_IGNORE_WARNINGS_GCC_LIKE

} // namespace juce

0 comments on commit 171edbe

Please sign in to comment.