diff options
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 \ |