diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-20 23:45:12 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-06-11 15:16:34 +0200 |
commit | 81768981c714d7165b7526a21142aaf41c992510 (patch) | |
tree | 0a16a3813976972900c8d73d9012c03be0b0f5a6 /solenv | |
parent | 9cd4ab815bada1431074f1c2b67b1c92ac436cf3 (diff) |
gbuild: suppress -Werror on new GCC 8 warnings for release branch
Change-Id: I0db765096b6b1a6595057f253884afc2e3fb0178
Reviewed-on: https://gerrit.libreoffice.org/54608
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 1d3a436ddb62065145b696635b4ec5fb4c9be12a)
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 11b7871a3e6f..1466cf17d3ad 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -96,6 +96,17 @@ gb_CXXFLAGS_COMMON += \ -Wunused-const-variable=1 endif +ifeq ($(shell expr '$(GCC_VERSION)' '>=' 800),1) +gb_CXXFLAGS_COMMON += \ + -Wno-error=cast-function-type \ + -Wno-error=sizeof-pointer-memaccess \ + -Wno-error=class-memaccess \ + -Wno-error=parentheses \ + -Wno-error=implicit-fallthrough \ + -Wno-error=ignored-qualifiers \ + +endif + ifeq ($(COM_IS_CLANG),TRUE) gb_CXXFLAGS_COMMON += -Wimplicit-fallthrough endif |