Browse Source

Removed some warning settings that weren't supported by older GCCs. Also added workarounds for some spurious GCC warnings.

tags/2021-05-28
jules 12 years ago
parent
commit
ebc0b2b727
11 changed files with 25 additions and 25 deletions
  1. +2
    -2
      extras/Introjucer/Builds/MacOSX/The Introjucer.xcodeproj/project.pbxproj
  2. +1
    -1
      extras/Introjucer/Introjucer.jucer
  3. +2
    -2
      extras/JuceDemo/Builds/MacOSX/Juce Demo.xcodeproj/project.pbxproj
  4. +1
    -1
      extras/JuceDemo/Juce Demo.jucer
  5. +6
    -6
      extras/JuceDemo/Source/demos/WidgetsDemo.cpp
  6. +2
    -2
      modules/juce_audio_basics/buffers/juce_AudioDataConverters.h
  7. +2
    -2
      modules/juce_audio_formats/codecs/juce_AiffAudioFormat.cpp
  8. +3
    -3
      modules/juce_audio_formats/format/juce_AudioFormatWriter.cpp
  9. +2
    -2
      modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp
  10. +2
    -2
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp
  11. +2
    -2
      modules/juce_opengl/opengl/juce_OpenGLImage.cpp

+ 2
- 2
extras/Introjucer/Builds/MacOSX/The Introjucer.xcodeproj/project.pbxproj View File

@@ -1873,7 +1873,7 @@
HEADER_SEARCH_PATHS = "../../JuceLibraryCode $(inherited)";
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = Info.plist;
OTHER_CPLUSPLUSFLAGS = "-W -Wall -Wshadow -Wno-missing-field-initializers -Wint-conversion -Wshadow -Wconstant-conversion -Wshorten-64-to-32 -Wstrict-aliasing";
OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing";
INSTALL_PATH = "$(HOME)/Applications";
CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/build/$(CONFIGURATION)";
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4;
@@ -1894,7 +1894,7 @@
HEADER_SEARCH_PATHS = "../../JuceLibraryCode $(inherited)";
GCC_OPTIMIZATION_LEVEL = 3;
INFOPLIST_FILE = Info.plist;
OTHER_CPLUSPLUSFLAGS = "-W -Wall -Wshadow -Wno-missing-field-initializers -Wint-conversion -Wshadow -Wconstant-conversion -Wshorten-64-to-32 -Wstrict-aliasing";
OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing";
INSTALL_PATH = "$(HOME)/Applications";
CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/build/$(CONFIGURATION)";
MACOSX_DEPLOYMENT_TARGET = 10.5;


+ 1
- 1
extras/Introjucer/Introjucer.jucer View File

@@ -15,7 +15,7 @@
<EXPORTFORMATS>
<XCODE_MAC targetFolder="Builds/MacOSX" vstFolder="~/SDKs/vstsdk2.4" rtasFolder="~/SDKs/PT_80_SDK"
juceFolder="../.." documentExtensions=".jucer" objCExtraSuffix="zNNCr"
bigIcon="rVgowdy" extraCompilerFlags="-W -Wall -Wshadow -Wno-missing-field-initializers -Wint-conversion -Wshadow -Wconstant-conversion -Wshorten-64-to-32 -Wstrict-aliasing">
bigIcon="rVgowdy" extraCompilerFlags="-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing">
<CONFIGURATIONS>
<CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="Introjucer"
osxSDK="default" osxCompatibility="default" osxArchitecture="default"/>


+ 2
- 2
extras/JuceDemo/Builds/MacOSX/Juce Demo.xcodeproj/project.pbxproj View File

@@ -2071,7 +2071,7 @@
HEADER_SEARCH_PATHS = "../../JuceLibraryCode $(inherited)";
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = Info.plist;
OTHER_CPLUSPLUSFLAGS = "-Wall -Wno-missing-field-initializers -Wstrict-aliasing -Wint-conversion -Wshadow -Wconstant-conversion -Wshorten-64-to-32";
OTHER_CPLUSPLUSFLAGS = "-Wall -Wno-missing-field-initializers -Wstrict-aliasing -Wshadow -Wshorten-64-to-32";
INSTALL_PATH = "$(HOME)/Applications";
CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/build/$(CONFIGURATION)";
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4;
@@ -2093,7 +2093,7 @@
HEADER_SEARCH_PATHS = "../../JuceLibraryCode $(inherited)";
GCC_OPTIMIZATION_LEVEL = s;
INFOPLIST_FILE = Info.plist;
OTHER_CPLUSPLUSFLAGS = "-Wall -Wno-missing-field-initializers -Wstrict-aliasing -Wint-conversion -Wshadow -Wconstant-conversion -Wshorten-64-to-32";
OTHER_CPLUSPLUSFLAGS = "-Wall -Wno-missing-field-initializers -Wstrict-aliasing -Wshadow -Wshorten-64-to-32";
INSTALL_PATH = "$(HOME)/Applications";
CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/build/$(CONFIGURATION)";
MACOSX_DEPLOYMENT_TARGET = 10.5;


+ 1
- 1
extras/JuceDemo/Juce Demo.jucer View File

@@ -12,7 +12,7 @@
<EXPORTFORMATS>
<XCODE_MAC targetFolder="Builds/MacOSX" vstFolder="~/SDKs/vstsdk2.4" rtasFolder="~/SDKs/PT_80_SDK"
juceFolder="../../../juce" objCExtraSuffix="JSLvvV6j" bigIcon="f4hwldS"
extraCompilerFlags="-Wall -Wno-missing-field-initializers -Wstrict-aliasing -Wint-conversion -Wshadow -Wconstant-conversion -Wshorten-64-to-32">
extraCompilerFlags="-Wall -Wno-missing-field-initializers -Wstrict-aliasing -Wshadow -Wshorten-64-to-32">
<CONFIGURATIONS>
<CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="JuceDemo"
osxSDK="default" osxCompatibility="default" defines="JUCE_UNIT_TESTS=1"


+ 6
- 6
extras/JuceDemo/Source/demos/WidgetsDemo.cpp View File

@@ -839,10 +839,10 @@ private:
comboBox.setEditableText (true);
}
bool getToolbarItemSizes (int /*toolbarDepth*/, bool isToolbarVertical,
bool getToolbarItemSizes (int /*toolbarDepth*/, bool isVertical,
int& preferredSize, int& minSize, int& maxSize)
{
if (isToolbarVertical)
if (isVertical)
return false;
preferredSize = 250;
@@ -855,12 +855,12 @@ private:
{
}
void contentAreaChanged (const Rectangle<int>& contentArea)
void contentAreaChanged (const Rectangle<int>& newArea)
{
comboBox.setSize (contentArea.getWidth() - 2,
jmin (contentArea.getHeight() - 2, 22));
comboBox.setSize (newArea.getWidth() - 2,
jmin (newArea.getHeight() - 2, 22));
comboBox.setCentrePosition (contentArea.getCentreX(), contentArea.getCentreY());
comboBox.setCentrePosition (newArea.getCentreX(), newArea.getCentreY());
}
private:


+ 2
- 2
modules/juce_audio_basics/buffers/juce_AudioDataConverters.h View File

@@ -350,8 +350,8 @@ public:
/** Creates a pointer from some raw data in the appropriate format with the specified number of interleaved channels.
For non-interleaved data, use the other constructor.
*/
Pointer (typename Constness::VoidType* sourceData, int numInterleavedChannels) noexcept
: InterleavingType (numInterleavedChannels), data (Constness::toVoidPtr (sourceData))
Pointer (typename Constness::VoidType* sourceData, int numInterleaved) noexcept
: InterleavingType (numInterleaved), data (Constness::toVoidPtr (sourceData))
{
}


+ 2
- 2
modules/juce_audio_formats/codecs/juce_AiffAudioFormat.cpp View File

@@ -792,8 +792,8 @@ private:
class MemoryMappedAiffReader : public MemoryMappedAudioFormatReader
{
public:
MemoryMappedAiffReader (const File& file, const AiffAudioFormatReader& reader)
: MemoryMappedAudioFormatReader (file, reader, reader.dataChunkStart,
MemoryMappedAiffReader (const File& f, const AiffAudioFormatReader& reader)
: MemoryMappedAudioFormatReader (f, reader, reader.dataChunkStart,
reader.bytesPerFrame * reader.lengthInSamples, reader.bytesPerFrame),
littleEndian (reader.littleEndian)
{


+ 3
- 3
modules/juce_audio_formats/format/juce_AudioFormatWriter.cpp View File

@@ -188,9 +188,9 @@ class AudioFormatWriter::ThreadedWriter::Buffer : public AbstractFifo,
private TimeSliceClient
{
public:
Buffer (TimeSliceThread& tst, AudioFormatWriter* w, int channels, int bufferSize)
: AbstractFifo (bufferSize),
buffer (channels, bufferSize),
Buffer (TimeSliceThread& tst, AudioFormatWriter* w, int channels, int numSamples)
: AbstractFifo (numSamples),
buffer (channels, numSamples),
timeSliceThread (tst),
writer (w),
receiver (nullptr),


+ 2
- 2
modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp View File

@@ -25,12 +25,12 @@
PluginListComponent::PluginListComponent (AudioPluginFormatManager& manager,
KnownPluginList& listToEdit,
const File& deadMansPedal,
PropertiesFile* const properties)
PropertiesFile* const props)
: formatManager (manager),
list (listToEdit),
deadMansPedalFile (deadMansPedal),
optionsButton ("Options..."),
propertiesToUse (properties),
propertiesToUse (props),
numThreads (0)
{
listBox.setModel (this);


+ 2
- 2
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -460,14 +460,14 @@ public:
}
#if JUCE_DEBUG || JUCE_LOG_ASSERTIONS
void componentBeingDeleted (Component& component) override
void componentBeingDeleted (Component& c) override
{
/* You must call detach() or delete your OpenGLContext to remove it
from a component BEFORE deleting the component that it is using!
*/
jassertfalse;
ComponentMovementWatcher::componentBeingDeleted (component);
ComponentMovementWatcher::componentBeingDeleted (c);
}
#endif


+ 2
- 2
modules/juce_opengl/opengl/juce_OpenGLImage.cpp View File

@@ -25,8 +25,8 @@
class OpenGLFrameBufferImage : public ImagePixelData
{
public:
OpenGLFrameBufferImage (OpenGLContext& context_, int width, int height)
: ImagePixelData (Image::ARGB, width, height),
OpenGLFrameBufferImage (OpenGLContext& context_, int w, int h)
: ImagePixelData (Image::ARGB, w, h),
context (context_),
pixelStride (4),
lineStride (width * pixelStride)


Loading…
Cancel
Save