diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-09-13 15:01:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-09-13 19:14:48 +0200 |
commit | 387974a78a68d54db38e3b74a1ac687928cd04a4 (patch) | |
tree | f83cfa439510c02f111171fd0efc564e9608053a | |
parent | 831c187d831972ed96ac4d535ef5773503c3db00 (diff) |
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 <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 14 |
1 files changed, 14 insertions, 0 deletions
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 |