diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-09-13 15:01:09 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-09-14 16:07:24 +0200 |
commit | a8e2790c9b16d939011bdae86cdf3c41b391ad94 (patch) | |
tree | d1992b9c6d3dc62527ecd8aba4927779fd646bda | |
parent | e239a3a32791f3232b1a5e0ac5cda76f6a9420be (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>
(cherry picked from commit 387974a78a68d54db38e3b74a1ac687928cd04a4)
-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 |