1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Android: Suppress availability macro warning

This commit is contained in:
attila 2025-05-16 16:46:01 +02:00 committed by reuk
parent 4bdb76158e
commit 7fc75c35f9
No known key found for this signature in database

View file

@ -292,6 +292,14 @@ public:
}
private:
// The definition of __BIONIC_AVAILABILITY was changed in NDK 28.1 and it now has variadic
// parameters.
//
// But __INTRODUCED_IN only has one parameter so there isn't even a way to pass on anything to
// to __BIONIC_AVAILABILITY.
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wgnu-zero-variadic-macro-arguments")
static __INTRODUCED_IN (29) Typeface::Ptr fromMatchedFont (AFont* matched)
{
if (matched == nullptr)
@ -356,6 +364,8 @@ private:
return fromMatchedFont (matched.get());
}
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
static Typeface::Ptr loadCompatibleFont (const TypefaceFileAndIndex& info)
{
FileInputStream stream { info.file };