Browse Source

Warnings: Avoid triggering missing-prototypes warnings on macOS/iOS

v6.1.6
reuk 3 years ago
parent
commit
9199fa3c51
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
3 changed files with 8 additions and 1 deletions
  1. +4
    -0
      modules/juce_audio_devices/native/juce_ios_Audio.cpp
  2. +3
    -1
      modules/juce_events/messages/juce_Initialisation.h
  3. +1
    -0
      modules/juce_gui_basics/windows/juce_AlertWindow.cpp

+ 4
- 0
modules/juce_audio_devices/native/juce_ios_Audio.cpp View File

@@ -64,6 +64,8 @@ static const char* getRoutingChangeReason (AVAudioSessionRouteChangeReason reaso
}
}
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wmissing-prototypes")
bool getNotificationValueForKey (NSNotification* notification, NSString* key, NSUInteger& value) noexcept
{
if (notification != nil)
@@ -82,6 +84,8 @@ bool getNotificationValueForKey (NSNotification* notification, NSString* key, NS
return false;
}
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
} // namespace juce
//==============================================================================


+ 3
- 1
modules/juce_events/messages/juce_Initialisation.h View File

@@ -157,8 +157,10 @@ public:
#else
#define START_JUCE_APPLICATION(AppClass) \
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wmissing-prototypes") \
JUCE_CREATE_APPLICATION_DEFINE(AppClass) \
JUCE_MAIN_FUNCTION_DEFINITION
JUCE_MAIN_FUNCTION_DEFINITION \
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#if JUCE_IOS
/**


+ 1
- 0
modules/juce_gui_basics/windows/juce_AlertWindow.cpp View File

@@ -649,6 +649,7 @@ namespace AlertWindowMappings
return rawToUniquePtr (ModalCallbackFunction::create (std::move (wrappedCallback)));
}
}
#if JUCE_MODAL_LOOPS_PERMITTED


Loading…
Cancel
Save