mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Cranked-up the warning level in the introjucer Xcode build, and fixed a few minor warnings.
This commit is contained in:
parent
d117082fd8
commit
5d6c37ed69
6 changed files with 21 additions and 21 deletions
|
|
@ -2002,7 +2002,7 @@
|
|||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4;
|
||||
OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter";
|
||||
OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion -Woverloaded-virtual -Wreorder -Wconstant-conversion -Wsign-conversion";
|
||||
SDKROOT_ppc = macosx10.5; }; name = Debug; };
|
||||
B159CF4275B8A90122629FF4 = {isa = XCBuildConfiguration; buildSettings = {
|
||||
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
|
||||
|
|
@ -2026,7 +2026,7 @@
|
|||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
||||
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4;
|
||||
OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter";
|
||||
OTHER_CPLUSPLUSFLAGS = "-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion -Woverloaded-virtual -Wreorder -Wconstant-conversion -Wsign-conversion";
|
||||
SDKROOT_ppc = macosx10.5; }; name = Release; };
|
||||
C42924A24AB55E6A940423EA = {isa = XCBuildConfiguration; buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<EXPORTFORMATS>
|
||||
<XCODE_MAC targetFolder="Builds/MacOSX" vstFolder="~/SDKs/vstsdk2.4" rtasFolder="~/SDKs/PT_80_SDK"
|
||||
documentExtensions=".jucer" objCExtraSuffix="zNNCr" bigIcon="rVgowdy"
|
||||
extraCompilerFlags="-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter">
|
||||
extraCompilerFlags="-Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion -Woverloaded-virtual -Wreorder -Wconstant-conversion -Wsign-conversion">
|
||||
<CONFIGURATIONS>
|
||||
<CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="Introjucer"
|
||||
osxSDK="default" osxCompatibility="default" osxArchitecture="Native"/>
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ void ResourceEditorPanel::paintCell (Graphics& g, int rowNumber, int columnId, i
|
|||
else if (columnId == 2)
|
||||
text = r->originalFilename;
|
||||
else if (columnId == 3)
|
||||
text = File::descriptionOfSizeInBytes (r->data.getSize());
|
||||
text = File::descriptionOfSizeInBytes ((int64) r->data.getSize());
|
||||
|
||||
g.setFont (13.0f);
|
||||
g.drawText (text, 4, 0, width - 6, height, Justification::centredLeft, true);
|
||||
|
|
@ -169,7 +169,7 @@ int ResourceEditorPanel::getColumnAutoSizeWidth (int columnId)
|
|||
else if (columnId == 2)
|
||||
text = r->originalFilename;
|
||||
else if (columnId == 3)
|
||||
text = File::descriptionOfSizeInBytes (r->data.getSize());
|
||||
text = File::descriptionOfSizeInBytes ((int64) r->data.getSize());
|
||||
|
||||
widest = jmax (widest, f.getStringWidth (text));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ private:
|
|||
int sourceGap = (8 - (numBits & 7)) & 7; // space on source[sourcePos]
|
||||
int bufferRem = bufferBits & 7; // occupied bits on buffer[bufferPos]
|
||||
|
||||
uint64 value = numBits, carry = 0;
|
||||
uint64 value = (uint64) numBits, carry = 0;
|
||||
|
||||
for (int i = 32; --i >= 0 && (carry != 0 || value != 0);)
|
||||
{
|
||||
|
|
@ -137,14 +137,14 @@ private:
|
|||
if (bufferPos > 32)
|
||||
{
|
||||
if (bufferPos < 64)
|
||||
zeromem (buffer + bufferPos, 64 - bufferPos);
|
||||
zeromem (buffer + bufferPos, (size_t) (64 - bufferPos));
|
||||
|
||||
processNextBuffer();
|
||||
bufferPos = 0;
|
||||
}
|
||||
|
||||
if (bufferPos < 32)
|
||||
zeromem (buffer + bufferPos, 32 - bufferPos);
|
||||
zeromem (buffer + bufferPos, (size_t) (32 - bufferPos));
|
||||
|
||||
bufferPos = 32;
|
||||
memcpy (buffer + 32, bitLength, 32); // append bit length of hashed data
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@ ColourGradient::ColourGradient() noexcept
|
|||
#endif
|
||||
}
|
||||
|
||||
ColourGradient::ColourGradient (Colour colour1, const float x1_, const float y1_,
|
||||
Colour colour2, const float x2_, const float y2_,
|
||||
const bool isRadial_)
|
||||
: point1 (x1_, y1_),
|
||||
point2 (x2_, y2_),
|
||||
isRadial (isRadial_)
|
||||
ColourGradient::ColourGradient (Colour colour1, const float x1, const float y1,
|
||||
Colour colour2, const float x2, const float y2,
|
||||
const bool radial)
|
||||
: point1 (x1, y1),
|
||||
point2 (x2, y2),
|
||||
isRadial (radial)
|
||||
{
|
||||
colours.add (ColourPoint (0.0, colour1));
|
||||
colours.add (ColourPoint (1.0, colour2));
|
||||
|
|
|
|||
|
|
@ -707,7 +707,7 @@ void CoreGraphicsContext::SavedState::setFill (const FillType& newFill)
|
|||
static CGGradientRef createGradient (const ColourGradient& g, CGColorSpaceRef colourSpace)
|
||||
{
|
||||
const int numColours = g.getNumColours();
|
||||
CGFloat* const data = (CGFloat*) alloca (numColours * 5 * sizeof (CGFloat));
|
||||
CGFloat* const data = (CGFloat*) alloca ((size_t) numColours * 5 * sizeof (CGFloat));
|
||||
CGFloat* const locations = data;
|
||||
CGFloat* const components = data + numColours;
|
||||
CGFloat* comps = components;
|
||||
|
|
@ -715,14 +715,14 @@ static CGGradientRef createGradient (const ColourGradient& g, CGColorSpaceRef co
|
|||
for (int i = 0; i < numColours; ++i)
|
||||
{
|
||||
const Colour colour (g.getColour (i));
|
||||
*comps++ = colour.getFloatRed();
|
||||
*comps++ = colour.getFloatGreen();
|
||||
*comps++ = colour.getFloatBlue();
|
||||
*comps++ = colour.getFloatAlpha();
|
||||
locations[i] = g.getColourPosition (i);
|
||||
*comps++ = (CGFloat) colour.getFloatRed();
|
||||
*comps++ = (CGFloat) colour.getFloatGreen();
|
||||
*comps++ = (CGFloat) colour.getFloatBlue();
|
||||
*comps++ = (CGFloat) colour.getFloatAlpha();
|
||||
locations[i] = (CGFloat) g.getColourPosition (i);
|
||||
}
|
||||
|
||||
return CGGradientCreateWithColorComponents (colourSpace, components, locations, numColours);
|
||||
return CGGradientCreateWithColorComponents (colourSpace, components, locations, (size_t) numColours);
|
||||
}
|
||||
|
||||
void CoreGraphicsContext::drawGradient()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue