mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Convert ignoreUnused to [[maybe_unused]]
This commit is contained in:
parent
4351e87bdd
commit
28f2157912
141 changed files with 1057 additions and 1209 deletions
|
|
@ -163,24 +163,22 @@ static bool checkPeerIsValid (OpenGLContext* context)
|
|||
{
|
||||
if (auto* comp = context->getTargetComponent())
|
||||
{
|
||||
if (auto* peer = comp->getPeer())
|
||||
if (auto* peer [[maybe_unused]] = comp->getPeer())
|
||||
{
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
if (auto* nsView = (JUCE_IOS_MAC_VIEW*) peer->getNativeHandle())
|
||||
{
|
||||
if (auto nsWindow = [nsView window])
|
||||
if ([[maybe_unused]] auto nsWindow = [nsView window])
|
||||
{
|
||||
#if JUCE_MAC
|
||||
return ([nsWindow isVisible]
|
||||
&& (! [nsWindow hidesOnDeactivate] || [NSApp isActive]));
|
||||
#else
|
||||
ignoreUnused (nsWindow);
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#else
|
||||
ignoreUnused (peer);
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue