diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-11 17:11:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-11 17:11:50 +0200 |
commit | 812e640561e932ab178b0cba16165272ef876b1a (patch) | |
tree | e10335ca3daed551e30c673026321702d01863ae /solenv | |
parent | 01f787a21a9dd0116545fbaa13d0a073db5b5d74 (diff) |
Enable Clang -Wimplicit-fallthrough
...now that all intended ones are marked as SAL_FALLTHROUGH.
Change-Id: Ibc76299cdac0d33285a47b106e7a548a5efffcbd
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 4 | ||||
-rw-r--r-- | solenv/gbuild/platform/com_MSC_defs.mk | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 7e30ed1a7af8..cb9d38d64498 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 a4c801f85f6c..40ca1f3584bb 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 \ |