[Libreoffice-commits] core.git: solenv/gbuild
Stephan Bergmann
sbergman at redhat.com
Mon Apr 18 15:47:39 UTC 2016
solenv/gbuild/platform/com_GCC_defs.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
New commits:
commit 7214f83b35aceb2ca0a4a3bac61f0ba9f888ec7c
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Apr 18 16:17:31 2016 +0200
Enable further GCC 6 warnings
...not already automatically enabled through the existing -W switches.
The set is assembled from information in
<https://gnu.wildebeest.org/blog/mjw/2016/02/15/looking-forward-to-gcc6-many-new-warnings/>.
All issues found have already been fixed with earlier commits.
Change-Id: I1abb6ba3a12c0ffb2756d06476e395b24e596f8e
Reviewed-on: https://gerrit.libreoffice.org/24219
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 9d88dfc..f23705b 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -87,6 +87,20 @@ gb_LinkTarget_LDFLAGS += -fprofile-arcs -lgcov
gb_COMPILEROPTFLAGS := -O0
endif
+ifeq ($(shell expr '$(GCC_VERSION)' '>=' 600),1)
+gb_CFLAGS_COMMON += \
+ -Wduplicated-cond \
+ -Wlogical-op \
+ -Wnull-dereference \
+ -Wshift-overflow=2
+gb_CXXFLAGS_COMMON += \
+ -Wduplicated-cond \
+ -Wlogical-op \
+ -Wnull-dereference \
+ -Wshift-overflow=2 \
+ -Wunused-const-variable=1
+endif
+
ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE)
gb_VISIBILITY_FLAGS := -DHAVE_GCC_VISIBILITY_FEATURE
More information about the Libreoffice-commits
mailing list