Browse Source

Fix more warnings. All clean on gcc5, gcc6, gcc7 and clang4

tags/1.9.8
falkTX 7 years ago
parent
commit
85743ce21a
8 changed files with 28 additions and 20 deletions
  1. +0
    -3
      source/modules/dgl/Makefile
  2. +2
    -1
      source/modules/dgl/src/NanoVG.cpp
  3. +1
    -1
      source/modules/dgl/src/Window.cpp
  4. +1
    -1
      source/modules/juce_audio_formats/Makefile
  5. +5
    -2
      source/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp
  6. +0
    -1
      source/native-plugins/Makefile
  7. +13
    -8
      source/native-plugins/zynaddsubfx-src.cpp
  8. +6
    -3
      source/native-plugins/zynaddsubfx-ui.cpp

+ 0
- 3
source/modules/dgl/Makefile View File

@@ -15,9 +15,6 @@ BUILD_CXX_FLAGS += $(DGL_FLAGS) -Isrc
# needed by sofd right now, fix later
BUILD_CXX_FLAGS += -Wno-type-limits -fpermissive

# needed by stb_image
BUILD_CXX_FLAGS += -Wno-shift-negative-value

# ----------------------------------------------------------------------------------------------------------------------------

OBJS = \


+ 2
- 1
source/modules/dgl/src/NanoVG.cpp View File

@@ -974,7 +974,8 @@ END_NAMESPACE_DGL

#if defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wno-misleading-indentation"
# pragma GCC diagnostic ignored "-Wmisleading-indentation"
# pragma GCC diagnostic ignored "-Wshift-negative-value"
#endif

extern "C" {


+ 1
- 1
source/modules/dgl/src/Window.cpp View File

@@ -44,7 +44,7 @@ extern "C" {
# error Unsupported platform
#endif

#if defined(__GNUC__) && (__GNUC__ >= 6)
#if defined(__GNUC__) && (__GNUC__ >= 7)
# pragma GCC diagnostic pop
#endif



+ 1
- 1
source/modules/juce_audio_formats/Makefile View File

@@ -11,7 +11,7 @@ include ../Makefile.mk
# ----------------------------------------------------------------------------------------------------------------------------

BUILD_CXX_FLAGS += $(JUCE_AUDIO_FORMATS_FLAGS) -I..
# BUILD_CXX_FLAGS += -Wno-misleading-indentation -DHAVE_LROUND
BUILD_CXX_FLAGS += -DHAVE_LROUND

# ----------------------------------------------------------------------------------------------------------------------------



+ 5
- 2
source/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp View File

@@ -47,8 +47,11 @@ namespace OggVorbisNamespace
#elif JUCE_GCC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#if (__GNUC__ >= 7)
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#if (__GNUC__ >= 6)
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#if (__GNUC__ >= 7)
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif
#endif
#endif


+ 0
- 1
source/native-plugins/Makefile View File

@@ -31,7 +31,6 @@ endif # EXPERIMENTAL_PLUGINS

ifeq ($(HAVE_ZYN_DEPS),true)
ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS) -Izynaddsubfx -Izynaddsubfx/rtosc
# ZYN_CXX_FLAGS += -Wno-misleading-indentation -Wno-shift-negative-value
ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml zlib)
ZYN_LD_FLAGS = $(LINK_FLAGS)
ZYN_LD_FLAGS += $(shell pkg-config --libs liblo)


+ 13
- 8
source/native-plugins/zynaddsubfx-src.cpp View File

@@ -21,6 +21,16 @@
#define SOURCE_DIR "/usr/share/zynaddsubfx/examples"
#undef override

// ignore some compiler warnings
#if defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wshift-negative-value"
#elif defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Winconsistent-missing-override"
# pragma clang diagnostic ignored "-Wunused-private-field"
#endif

// base c-style headers
#include "zynaddsubfx/tlsf/tlsf.h"
#include "zynaddsubfx/rtosc/rtosc.h"
@@ -44,13 +54,6 @@ extern "C" {
#include "zynaddsubfx/rtosc/rtosc.c"
}

// ignore some compiler warnings
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Winconsistent-missing-override"
# pragma clang diagnostic ignored "-Wunused-private-field"
#endif

// rtosc includes
#include "zynaddsubfx/rtosc/cpp/automations.cpp"
#include "zynaddsubfx/rtosc/cpp/midimapper.cpp"
@@ -537,7 +540,9 @@ extern "C" {

#include "zynaddsubfx/globals.cpp"

#if defined(__clang__)
#if defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic pop
#elif defined(__clang__)
# pragma clang diagnostic pop
#endif



+ 6
- 3
source/native-plugins/zynaddsubfx-ui.cpp View File

@@ -50,9 +50,12 @@ extern "C" {
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Winconsistent-missing-override"
# pragma clang diagnostic ignored "-Wunused-private-field"
#elif defined(__GNUC__) && (__GNUC__ >= 7)
#elif defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
# pragma GCC diagnostic ignored "-Wmisleading-indentation"
# if (__GNUC__ >= 7)
# pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
# endif
#endif

// rtosc c++ includes
@@ -116,7 +119,7 @@ extern "C" {

#if defined(__clang__)
# pragma clang diagnostic pop
#elif defined(__GNUC__) && (__GNUC__ >= 7)
#elif defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic pop
#endif



Loading…
Cancel
Save