1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Deprecations: Add ignore deprecation warning macros

This commit is contained in:
Anthony Nicholls 2024-09-27 16:26:59 +01:00
parent 6b08ced201
commit 5e803ded5f
42 changed files with 114 additions and 148 deletions

View file

@ -149,11 +149,9 @@ void ChildProcessCoordinator::handleConnectionLost() {}
void ChildProcessCoordinator::handleMessageFromWorker (const MemoryBlock& mb)
{
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
handleMessageFromSlave (mb);
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
JUCE_END_IGNORE_WARNINGS_MSVC
JUCE_END_IGNORE_DEPRECATION_WARNINGS
}
bool ChildProcessCoordinator::sendMessageToWorker (const MemoryBlock& mb)
@ -276,11 +274,9 @@ void ChildProcessWorker::handleConnectionLost() {}
void ChildProcessWorker::handleMessageFromCoordinator (const MemoryBlock& mb)
{
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
handleMessageFromMaster (mb);
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
JUCE_END_IGNORE_WARNINGS_MSVC
JUCE_END_IGNORE_DEPRECATION_WARNINGS
}
bool ChildProcessWorker::sendMessageToCoordinator (const MemoryBlock& mb)

View file

@ -142,11 +142,11 @@ struct AppDelegateClass final : public ObjCClass<NSObject>
{
if (notification.userInfo != nil)
{
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
// NSUserNotification is deprecated from macOS 11, but there doesn't seem to be a
// replacement for NSApplicationLaunchUserNotificationKey returning a non-deprecated type
NSUserNotification* userNotification = notification.userInfo[NSApplicationLaunchUserNotificationKey];
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
JUCE_END_IGNORE_DEPRECATION_WARNINGS
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wnullable-to-nonnull-conversion")
if (userNotification != nil && userNotification.userInfo != nil)