mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Workarounds for some new "recommended" Xcode warning flags
This commit is contained in:
parent
f183a506ef
commit
baddc6389e
5 changed files with 48 additions and 9 deletions
|
|
@ -71,13 +71,24 @@ namespace juce
|
||||||
#include "interprocess/juce_ConnectedChildProcess.cpp"
|
#include "interprocess/juce_ConnectedChildProcess.cpp"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC || JUCE_IOS
|
||||||
#include "native/juce_osx_MessageQueue.h"
|
|
||||||
#include "native/juce_mac_MessageManager.mm"
|
|
||||||
|
|
||||||
#elif JUCE_IOS
|
|
||||||
#include "native/juce_osx_MessageQueue.h"
|
#include "native/juce_osx_MessageQueue.h"
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wundeclared-selector"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if JUCE_MAC
|
||||||
|
#include "native/juce_mac_MessageManager.mm"
|
||||||
|
#else
|
||||||
#include "native/juce_ios_MessageManager.mm"
|
#include "native/juce_ios_MessageManager.mm"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif JUCE_WINDOWS
|
#elif JUCE_WINDOWS
|
||||||
#include "native/juce_win32_Messaging.cpp"
|
#include "native/juce_win32_Messaging.cpp"
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,11 @@ extern bool juce_areThereAnyAlwaysOnTopWindows();
|
||||||
|
|
||||||
#if JUCE_MAC || JUCE_IOS
|
#if JUCE_MAC || JUCE_IOS
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wundeclared-selector"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if JUCE_IOS
|
#if JUCE_IOS
|
||||||
#include "native/juce_ios_UIViewComponentPeer.mm"
|
#include "native/juce_ios_UIViewComponentPeer.mm"
|
||||||
#include "native/juce_ios_Windowing.mm"
|
#include "native/juce_ios_Windowing.mm"
|
||||||
|
|
@ -277,6 +282,10 @@ extern bool juce_areThereAnyAlwaysOnTopWindows();
|
||||||
#include "native/juce_mac_MainMenu.mm"
|
#include "native/juce_mac_MainMenu.mm"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "native/juce_mac_MouseCursor.mm"
|
#include "native/juce_mac_MouseCursor.mm"
|
||||||
#include "native/juce_mac_FileChooser.mm"
|
#include "native/juce_mac_FileChooser.mm"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,12 @@ namespace juce
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_MAC || JUCE_IOS
|
#if JUCE_MAC || JUCE_IOS
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wundeclared-selector"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC
|
||||||
#include "native/juce_mac_NSViewComponent.mm"
|
#include "native/juce_mac_NSViewComponent.mm"
|
||||||
#include "native/juce_mac_AppleRemote.mm"
|
#include "native/juce_mac_AppleRemote.mm"
|
||||||
|
|
@ -125,6 +131,10 @@ namespace juce
|
||||||
#include "native/juce_mac_WebBrowserComponent.mm"
|
#include "native/juce_mac_WebBrowserComponent.mm"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#elif JUCE_WINDOWS
|
#elif JUCE_WINDOWS
|
||||||
#include "native/juce_win32_ActiveXComponent.cpp"
|
#include "native/juce_win32_ActiveXComponent.cpp"
|
||||||
|
|
|
||||||
|
|
@ -200,12 +200,21 @@ private:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_MAC || JUCE_IOS
|
#if JUCE_MAC || JUCE_IOS
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wundeclared-selector"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC
|
||||||
#include "native/juce_OpenGL_osx.h"
|
#include "native/juce_OpenGL_osx.h"
|
||||||
#else
|
#else
|
||||||
#include "native/juce_OpenGL_ios.h"
|
#include "native/juce_OpenGL_ios.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if JUCE_CLANG
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif JUCE_WINDOWS
|
#elif JUCE_WINDOWS
|
||||||
#include "native/juce_OpenGL_win32.h"
|
#include "native/juce_OpenGL_win32.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue