diff --git a/examples/BLOCKS/BlocksDrawingDemo.h b/examples/BLOCKS/BlocksDrawingDemo.h index a2b241785e..5ea9708c25 100644 --- a/examples/BLOCKS/BlocksDrawingDemo.h +++ b/examples/BLOCKS/BlocksDrawingDemo.h @@ -305,7 +305,7 @@ public: #if JUCE_IOS connectButton.setButtonText ("Connect"); - connectButton.onClick = [this] { BluetoothMidiDevicePairingDialogue::open(); }; + connectButton.onClick = [] { BluetoothMidiDevicePairingDialogue::open(); }; connectButton.setAlwaysOnTop (true); addAndMakeVisible (connectButton); #endif diff --git a/examples/BLOCKS/BlocksMonitorDemo.h b/examples/BLOCKS/BlocksMonitorDemo.h index 9c064ffac8..7c32040b70 100644 --- a/examples/BLOCKS/BlocksMonitorDemo.h +++ b/examples/BLOCKS/BlocksMonitorDemo.h @@ -597,7 +597,7 @@ public: #if JUCE_IOS connectButton.setButtonText ("Connect"); - connectButton.onClick = [this] { BluetoothMidiDevicePairingDialogue::open(); }; + connectButton.onClick = [] { BluetoothMidiDevicePairingDialogue::open(); }; connectButton.setAlwaysOnTop (true); addAndMakeVisible (connectButton); #endif diff --git a/examples/BLOCKS/BlocksSynthDemo.h b/examples/BLOCKS/BlocksSynthDemo.h index b2ab1e1c6b..3476b759d4 100644 --- a/examples/BLOCKS/BlocksSynthDemo.h +++ b/examples/BLOCKS/BlocksSynthDemo.h @@ -596,7 +596,7 @@ public: #if JUCE_IOS connectButton.setButtonText ("Connect"); - connectButton.onClick = [this] { BluetoothMidiDevicePairingDialogue::open(); }; + connectButton.onClick = [] { BluetoothMidiDevicePairingDialogue::open(); }; addAndMakeVisible (connectButton); #endif diff --git a/examples/DemoRunner/Builds/iOS/DemoRunner.xcodeproj/project.pbxproj b/examples/DemoRunner/Builds/iOS/DemoRunner.xcodeproj/project.pbxproj index 7d6730e02b..1aee579b01 100644 --- a/examples/DemoRunner/Builds/iOS/DemoRunner.xcodeproj/project.pbxproj +++ b/examples/DemoRunner/Builds/iOS/DemoRunner.xcodeproj/project.pbxproj @@ -255,6 +255,7 @@ INFOPLIST_FILE = Info-App.plist; INFOPLIST_PREPROCESS = NO; INSTALL_PATH = "$(HOME)/Applications"; + OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion -Wconditional-uninitialized -Woverloaded-virtual -Wreorder -Wconstant-conversion -Wsign-conversion -Wunused-private-field -Wbool-conversion -Wextra-semi -Wno-ignored-qualifiers -Wunreachable-code"; PRODUCT_BUNDLE_IDENTIFIER = com.roli.juce.demorunner; USE_HEADERMAP = NO; }; name = Debug; }; 69330F27DD2C71609336C7D2 = {isa = XCBuildConfiguration; buildSettings = { @@ -291,6 +292,7 @@ INFOPLIST_PREPROCESS = NO; INSTALL_PATH = "$(HOME)/Applications"; LLVM_LTO = YES; + OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion -Wconditional-uninitialized -Woverloaded-virtual -Wreorder -Wconstant-conversion -Wsign-conversion -Wunused-private-field -Wbool-conversion -Wextra-semi -Wno-ignored-qualifiers -Wunreachable-code"; PRODUCT_BUNDLE_IDENTIFIER = com.roli.juce.demorunner; USE_HEADERMAP = NO; }; name = Release; }; C01EC82F42B640CA1E54AD53 = {isa = XCBuildConfiguration; buildSettings = { diff --git a/examples/DemoRunner/DemoRunner.jucer b/examples/DemoRunner/DemoRunner.jucer index 82b019bb89..03a22f3935 100644 --- a/examples/DemoRunner/DemoRunner.jucer +++ b/examples/DemoRunner/DemoRunner.jucer @@ -122,7 +122,7 @@ + smallIcon="YyqWd2" bigIcon="YyqWd2" extraCompilerFlags="-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion -Wconditional-uninitialized -Woverloaded-virtual -Wreorder -Wconstant-conversion -Wsign-conversion -Wunused-private-field -Wbool-conversion -Wextra-semi -Wno-ignored-qualifiers -Wunreachable-code"> diff --git a/examples/DemoRunner/Source/Main.cpp b/examples/DemoRunner/Source/Main.cpp index 34bf46f92a..71379fba93 100644 --- a/examples/DemoRunner/Source/Main.cpp +++ b/examples/DemoRunner/Source/Main.cpp @@ -93,6 +93,8 @@ public: // (This function call is for one of the demos, which involves launching a child process) if (invokeChildProcessDemo (commandLine)) return; + #else + ignoreUnused (commandLine); #endif mainWindow.reset (new MainAppWindow (getApplicationName())); diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index 331701b7df..6f3eb0b1ec 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -971,6 +971,7 @@ bool File::createSymbolicLink (const File& linkFileToCreate, nativePathOfTarget.toWideCharPointer(), targetFile.isDirectory() ? SYMBOLIC_LINK_FLAG_DIRECTORY : 0) != FALSE; #else + ignoreUnused (nativePathOfTarget); jassertfalse; // symbolic links not supported on this platform! return false; #endif diff --git a/modules/juce_gui_basics/native/juce_ios_Windowing.mm b/modules/juce_gui_basics/native/juce_ios_Windowing.mm index 6a2d337328..ce7135f257 100644 --- a/modules/juce_gui_basics/native/juce_ios_Windowing.mm +++ b/modules/juce_gui_basics/native/juce_ios_Windowing.mm @@ -135,7 +135,7 @@ namespace juce } }]; - MessageManager::callAsync ([self,application,app] { app->suspended(); }); + MessageManager::callAsync ([app] { app->suspended(); }); #else ignoreUnused (application); app->suspended();