[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - solenv/gbuild
Michael Stahl
Michael.Stahl at cib.de
Wed Jun 6 13:23:37 UTC 2018
solenv/gbuild/platform/com_GCC_defs.mk | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 1d3a436ddb62065145b696635b4ec5fb4c9be12a
Author: Michael Stahl <Michael.Stahl at cib.de>
Date: Sun May 20 23:45:12 2018 +0200
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 at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
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
More information about the Libreoffice-commits
mailing list