Browse Source

Updates to avoid pedantic warnings in gcc.

tags/2021-05-28
jules 11 years ago
parent
commit
afbec9cf3c
4 changed files with 11 additions and 9 deletions
  1. +1
    -1
      modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/floor1.c
  2. +2
    -0
      modules/juce_events/native/juce_linux_Messaging.cpp
  3. +5
    -5
      modules/juce_graphics/geometry/juce_Path.cpp
  4. +3
    -3
      modules/juce_graphics/geometry/juce_Path.h

+ 1
- 1
modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/floor1.c 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){


+ 2
- 0
modules/juce_events/native/juce_linux_Messaging.cpp 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 };


+ 5
- 5
modules/juce_graphics/geometry/juce_Path.cpp 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;


+ 3
- 3
modules/juce_graphics/geometry/juce_Path.h 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


Loading…
Cancel
Save