[Libreoffice-commits] core.git: solenv/gbuild
Stephan Bergmann
sbergman at redhat.com
Wed May 11 15:12:27 UTC 2016
solenv/gbuild/platform/com_GCC_defs.mk | 4 ++++
solenv/gbuild/platform/com_MSC_defs.mk | 1 +
2 files changed, 5 insertions(+)
New commits:
commit 812e640561e932ab178b0cba16165272ef876b1a
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed May 11 17:11:50 2016 +0200
Enable Clang -Wimplicit-fallthrough
...now that all intended ones are marked as SAL_FALLTHROUGH.
Change-Id: Ibc76299cdac0d33285a47b106e7a548a5efffcbd
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 7e30ed1..cb9d38d 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -101,6 +101,10 @@ gb_CXXFLAGS_COMMON += \
-Wunused-const-variable=1
endif
+ifeq ($(COM_IS_CLANG),TRUE)
+gb_CXXFLAGS_COMMON += -Wimplicit-fallthrough
+endif
+
ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE)
gb_VISIBILITY_FLAGS := -DHAVE_GCC_VISIBILITY_FEATURE
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index a4c801f..40ca1f3 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -232,6 +232,7 @@ endif
ifeq ($(COM_IS_CLANG),TRUE)
gb_CXXFLAGS += \
-Wendif-labels \
+ -Wimplicit-fallthrough \
-Wno-missing-braces \
-Wno-missing-braces \
-Wnon-virtual-dtor \
More information about the Libreoffice-commits
mailing list