From e3a27c5f0e4fca6c0a8741d0aa7ebb855799c122 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 24 Oct 2019 19:35:18 +0200 Subject: [PATCH] Fix a build warning --- source/backend/plugin/CarlaPluginJuce.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/backend/plugin/CarlaPluginJuce.cpp b/source/backend/plugin/CarlaPluginJuce.cpp index ebb8cc152..810407ced 100644 --- a/source/backend/plugin/CarlaPluginJuce.cpp +++ b/source/backend/plugin/CarlaPluginJuce.cpp @@ -26,7 +26,6 @@ #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wcast-qual" -# pragma GCC diagnostic ignored "-Wclass-memaccess" # pragma GCC diagnostic ignored "-Wconversion" # pragma GCC diagnostic ignored "-Wdouble-promotion" # pragma GCC diagnostic ignored "-Weffc++" @@ -35,6 +34,9 @@ # pragma GCC diagnostic ignored "-Wsign-conversion" # pragma GCC diagnostic ignored "-Wundef" # pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" +# if __GNUC__ > 7 +# pragma GCC diagnostic ignored "-Wclass-memaccess" +# endif #endif #include "AppConfig.h"