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

AU Client: Ignore availability warnings for MIDIEventList functions

Xcode 13.2.1 warns on these functions, despite the lambdas being
declared inside an @availability-checked block.
This commit is contained in:
reuk 2024-11-20 20:21:51 +00:00
parent 01bfa98827
commit 0aaaea265a
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -2193,7 +2193,9 @@ private:
const auto init = [&]
{
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wunguarded-availability-new")
end = MIDIEventListInit (&stackList, kMIDIProtocol_1_0);
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
};
const auto send = [&]
@ -2206,6 +2208,7 @@ private:
static_assert (sizeof (uint32_t) == sizeof (UInt32)
&& alignof (uint32_t) == alignof (UInt32),
"If this fails, the cast below will be broken too!");
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wunguarded-availability-new")
using List = struct MIDIEventList;
end = MIDIEventListAdd (&stackList,
sizeof (List::packet),
@ -2213,6 +2216,7 @@ private:
(MIDITimeStamp) timeStamp,
view.size(),
reinterpret_cast<const UInt32*> (view.data()));
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
};
init();