1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Updates to avoid pedantic warnings in gcc.

This commit is contained in:
jules 2015-04-07 14:37:12 +01:00
parent bbe1b0bc01
commit afbec9cf3c
4 changed files with 11 additions and 9 deletions

View file

@ -850,7 +850,7 @@ int floor1_encode(oggpack_buffer *opb,vorbis_block *vb,
/* generate the partition's first stage cascade value */
if(csubbits){
int maxval[8];
int maxval[8] = { 0 };
for(k=0;k<csub;k++){
int booknum=info->class_subbook[classx][k];
if(booknum<0){

View file

@ -235,6 +235,8 @@ namespace LinuxErrorHandling
int errorHandler (Display* display, XErrorEvent* event)
{
(void) display; (void) event;
#if JUCE_DEBUG_XERRORS
char errorStr[64] = { 0 };
char requestStr[64] = { 0 };

View file

@ -1567,17 +1567,17 @@ void Path::restoreFromString (StringRef stringVersion)
}
//==============================================================================
Path::Iterator::Iterator (const Path& path_)
: path (path_),
index (0)
Path::Iterator::Iterator (const Path& p) noexcept
: x1 (0), y1 (0), x2 (0), y2 (0), x3 (0), y3 (0),
path (p), index (0)
{
}
Path::Iterator::~Iterator()
Path::Iterator::~Iterator() noexcept
{
}
bool Path::Iterator::next()
bool Path::Iterator::next() noexcept
{
const float* const elements = path.data.elements;

View file

@ -717,8 +717,8 @@ public:
{
public:
//==============================================================================
Iterator (const Path& path);
~Iterator();
Iterator (const Path& path) noexcept;
~Iterator() noexcept;
//==============================================================================
/** Moves onto the next element in the path.
@ -727,7 +727,7 @@ public:
the elementType variable will be set to the type of the current element,
and some of the x and y variables will be filled in with values.
*/
bool next();
bool next() noexcept;
//==============================================================================
enum PathElementType