From 70838e1d1c33b8771d6e2c20056a8b88802fd231 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 24 Sep 2017 08:57:35 +0200 Subject: [PATCH] Ignore fall-through warnings in zyn-ui code --- source/native-plugins/zynaddsubfx-ui.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/native-plugins/zynaddsubfx-ui.cpp b/source/native-plugins/zynaddsubfx-ui.cpp index fce94124a..9e14e7949 100644 --- a/source/native-plugins/zynaddsubfx-ui.cpp +++ b/source/native-plugins/zynaddsubfx-ui.cpp @@ -58,6 +58,11 @@ extern "C" { #undef static #include "zynaddsubfx/rtosc/cpp/undo-history.cpp" +#if defined(__GNUC__) && (__GNUC__ >= 6) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif + // zynaddsubfx ui includes #include "zynaddsubfx/UI/NioUI.cpp" #include "zynaddsubfx/UI/WidgetPDial.cpp" @@ -104,6 +109,10 @@ extern "C" { #include "zynaddsubfx/UI/VirKeyboard.cpp" #include "zynaddsubfx/UI/guimain.cpp" +#if defined(__GNUC__) && (__GNUC__ >= 6) +# pragma GCC diagnostic pop +#endif + class ZynPipeClient : public CarlaPipeClient { public: