mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: Suppress availability macro warning
This commit is contained in:
parent
4bdb76158e
commit
7fc75c35f9
1 changed files with 10 additions and 0 deletions
|
|
@ -292,6 +292,14 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
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)
|
static __INTRODUCED_IN (29) Typeface::Ptr fromMatchedFont (AFont* matched)
|
||||||
{
|
{
|
||||||
if (matched == nullptr)
|
if (matched == nullptr)
|
||||||
|
|
@ -356,6 +364,8 @@ private:
|
||||||
return fromMatchedFont (matched.get());
|
return fromMatchedFont (matched.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||||
|
|
||||||
static Typeface::Ptr loadCompatibleFont (const TypefaceFileAndIndex& info)
|
static Typeface::Ptr loadCompatibleFont (const TypefaceFileAndIndex& info)
|
||||||
{
|
{
|
||||||
FileInputStream stream { info.file };
|
FileInputStream stream { info.file };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue