From 5e866b6156db552374af503651785216f57f2255 Mon Sep 17 00:00:00 2001 From: reuk Date: Wed, 15 Mar 2023 21:27:46 +0000 Subject: [PATCH] MessageManager: Fix build issue introduced in 95f823ff72fb --- modules/juce_events/native/juce_mac_MessageManager.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_events/native/juce_mac_MessageManager.mm b/modules/juce_events/native/juce_mac_MessageManager.mm index 592890fe06..b0696430cb 100644 --- a/modules/juce_events/native/juce_mac_MessageManager.mm +++ b/modules/juce_events/native/juce_mac_MessageManager.mm @@ -138,8 +138,10 @@ struct AppDelegateClass : public ObjCClass NSUserNotification* userNotification = notification.userInfo[NSApplicationLaunchUserNotificationKey]; JUCE_END_IGNORE_WARNINGS_GCC_LIKE + JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wnullable-to-nonnull-conversion") if (userNotification != nil && userNotification.userInfo != nil) - didReceiveRemoteNotification (self, nil, [NSApplication sharedApplication], userNotification.userInfo); + [self application: [NSApplication sharedApplication] didReceiveRemoteNotification: userNotification.userInfo]; + JUCE_END_IGNORE_WARNINGS_GCC_LIKE } });