1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

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

This commit is contained in:
jules 2013-07-30 21:47:15 +01:00
parent 6629921a8b
commit ebc0b2b727
11 changed files with 25 additions and 25 deletions

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;

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"/>

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;

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"

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:

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))
{
}

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)
{

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),

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

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

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)