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:
parent
01bfa98827
commit
0aaaea265a
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue