Browse Source

Silence a few warnings in juce code

tags/1.9.8
falkTX 7 years ago
parent
commit
5dfc1b8a66
4 changed files with 15 additions and 0 deletions
  1. +5
    -0
      source/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp
  2. +3
    -0
      source/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp
  3. +2
    -0
      source/modules/juce_core/native/juce_posix_SharedCode.h
  4. +5
    -0
      source/modules/juce_core/zip/juce_GZIPDecompressorInputStream.cpp

+ 5
- 0
source/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp View File

@@ -117,6 +117,9 @@ namespace FlacNamespace
#pragma clang diagnostic ignored "-Wconversion" #pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wshadow" #pragma clang diagnostic ignored "-Wshadow"
#pragma clang diagnostic ignored "-Wdeprecated-register" #pragma clang diagnostic ignored "-Wdeprecated-register"
#elif JUCE_GCC && (__GNUC__ >= 6)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif #endif
#if JUCE_INTEL #if JUCE_INTEL
@@ -157,6 +160,8 @@ namespace FlacNamespace
#if JUCE_CLANG #if JUCE_CLANG
#pragma clang diagnostic pop #pragma clang diagnostic pop
#elif JUCE_GCC && (__GNUC__ >= 6)
#pragma GCC diagnostic pop
#endif #endif
} }


+ 3
- 0
source/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp View File

@@ -47,6 +47,9 @@ namespace OggVorbisNamespace
#elif JUCE_GCC #elif JUCE_GCC
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow" #pragma GCC diagnostic ignored "-Wshadow"
#if (__GNUC__ >= 6)
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif
#endif #endif
#include "oggvorbis/vorbisenc.h" #include "oggvorbis/vorbisenc.h"


+ 2
- 0
source/modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -1205,6 +1205,8 @@ public:
close (pipeHandles[1]); // close the write handle close (pipeHandles[1]); // close the write handle
} }
} }
ignoreUnused (streamFlags);
} }
~ActiveProcess() ~ActiveProcess()


+ 5
- 0
source/modules/juce_core/zip/juce_GZIPDecompressorInputStream.cpp View File

@@ -39,6 +39,9 @@ namespace zlibNamespace
#if __has_warning("-Wcomma") #if __has_warning("-Wcomma")
#pragma clang diagnostic ignored "-Wcomma" #pragma clang diagnostic ignored "-Wcomma"
#endif #endif
#elif JUCE_GCC && (__GNUC__ >= 6)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif #endif
#undef OS_CODE #undef OS_CODE
@@ -74,6 +77,8 @@ namespace zlibNamespace
#if JUCE_CLANG #if JUCE_CLANG
#pragma clang diagnostic pop #pragma clang diagnostic pop
#elif JUCE_GCC && (__GNUC__ >= 6)
#pragma GCC diagnostic pop
#endif #endif
#else #else
#include JUCE_ZLIB_INCLUDE_PATH #include JUCE_ZLIB_INCLUDE_PATH


Loading…
Cancel
Save