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

macOS/iOS: Fix unguarded availability warnings

This commit is contained in:
Tom Poole 2022-04-11 13:50:34 +01:00
parent e984395b1d
commit db3c6e6216
27 changed files with 220 additions and 177 deletions

View file

@ -82,10 +82,8 @@ namespace CoreMidiHelpers
struct Sender;
#if JUCE_HAS_NEW_COREMIDI_API
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wunguarded-availability", "-Wunguarded-availability-new")
template <>
struct Sender<ImplementationStrategy::onlyNew> : public SenderBase
struct API_AVAILABLE (macos (11.0), ios (14.0)) Sender<ImplementationStrategy::onlyNew> : public SenderBase
{
explicit Sender (MIDIEndpointRef ep)
: umpConverter (getProtocolForEndpoint (ep))
@ -177,8 +175,6 @@ namespace CoreMidiHelpers
send();
}
};
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#endif
#if JUCE_HAS_OLD_COREMIDI_API
@ -829,10 +825,8 @@ namespace CoreMidiHelpers
struct CreatorFunctions;
#if JUCE_HAS_NEW_COREMIDI_API
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wunguarded-availability", "-Wunguarded-availability-new")
template <>
struct CreatorFunctions<ImplementationStrategy::onlyNew>
struct API_AVAILABLE (macos (11.0), ios (14.0)) CreatorFunctions<ImplementationStrategy::onlyNew>
{
static OSStatus createInputPort (ump::PacketProtocol protocol,
MIDIClientRef client,
@ -894,8 +888,6 @@ namespace CoreMidiHelpers
static_cast<MidiPortAndCallback*> (readProcRefCon)->handlePackets (*list);
}
};
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#endif
#if JUCE_HAS_OLD_COREMIDI_API