From a8e2790c9b16d939011bdae86cdf3c41b391ad94 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 13 Sep 2017 15:01:09 +0200 Subject: gbuild: suppress -Werror on new GCC 7 warnings for release branch These are endemic and fixes too many to backport. Change-Id: I07b3c18c4fe654a840dcbd395bfc05e80649d574 Reviewed-on: https://gerrit.libreoffice.org/42247 Reviewed-by: Stephan Bergmann Tested-by: Jenkins (cherry picked from commit 387974a78a68d54db38e3b74a1ac687928cd04a4) --- solenv/gbuild/platform/com_GCC_defs.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 6b697fc9461c..0b8911436347 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -96,6 +96,20 @@ gb_CXXFLAGS_COMMON += \ -Wunused-const-variable=1 endif +# for release branch, exclude all new GCC7 warnings from Werror +ifeq ($(shell expr '$(GCC_VERSION)' '>=' 700),1) +gb_CFLAGS_COMMON += \ + -Wno-deprecated \ + -Wno-error=implicit-fallthrough \ + +gb_CXXFLAGS_COMMON += \ + -Wno-deprecated \ + -Wno-error=implicit-fallthrough \ + -Wno-error=format-truncation \ + -Wno-error=int-in-bool-context \ + +endif + ifeq ($(COM_IS_CLANG),TRUE) gb_CXXFLAGS_COMMON += -Wimplicit-fallthrough endif -- cgit v1.2.1