Browse Source

Increased the warning level when building DemoRunner on iOS

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
3a373cfa06
8 changed files with 10 additions and 5 deletions
  1. +1
    -1
      examples/BLOCKS/BlocksDrawingDemo.h
  2. +1
    -1
      examples/BLOCKS/BlocksMonitorDemo.h
  3. +1
    -1
      examples/BLOCKS/BlocksSynthDemo.h
  4. +2
    -0
      examples/DemoRunner/Builds/iOS/DemoRunner.xcodeproj/project.pbxproj
  5. +1
    -1
      examples/DemoRunner/DemoRunner.jucer
  6. +2
    -0
      examples/DemoRunner/Source/Main.cpp
  7. +1
    -0
      modules/juce_core/files/juce_File.cpp
  8. +1
    -1
      modules/juce_gui_basics/native/juce_ios_Windowing.mm

+ 1
- 1
examples/BLOCKS/BlocksDrawingDemo.h View File

@@ -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


+ 1
- 1
examples/BLOCKS/BlocksMonitorDemo.h View File

@@ -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


+ 1
- 1
examples/BLOCKS/BlocksSynthDemo.h View File

@@ -596,7 +596,7 @@ public:
#if JUCE_IOS
connectButton.setButtonText ("Connect");
connectButton.onClick = [this] { BluetoothMidiDevicePairingDialogue::open(); };
connectButton.onClick = [] { BluetoothMidiDevicePairingDialogue::open(); };
addAndMakeVisible (connectButton);
#endif


+ 2
- 0
examples/DemoRunner/Builds/iOS/DemoRunner.xcodeproj/project.pbxproj View File

@@ -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 = {


+ 1
- 1
examples/DemoRunner/DemoRunner.jucer View File

@@ -122,7 +122,7 @@
<XCODE_IPHONE targetFolder="Builds/iOS" iosScreenOrientation="landscape" iPadScreenOrientation="landscape"
UISupportsDocumentBrowser="1" microphonePermissionNeeded="1"
iCloudPermissions="1" UIFileSharingEnabled="1" customXcodeResourceFolders="../Assets"
smallIcon="YyqWd2" bigIcon="YyqWd2">
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">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug"/>
<CONFIGURATION isDebug="0" name="Release"/>


+ 2
- 0
examples/DemoRunner/Source/Main.cpp View File

@@ -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()));


+ 1
- 0
modules/juce_core/files/juce_File.cpp View File

@@ -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


+ 1
- 1
modules/juce_gui_basics/native/juce_ios_Windowing.mm View File

@@ -135,7 +135,7 @@ namespace juce
}
}];
MessageManager::callAsync ([self,application,app] { app->suspended(); });
MessageManager::callAsync ([app] { app->suspended(); });
#else
ignoreUnused (application);
app->suspended();


Loading…
Cancel
Save