From 44ea32ace410071494726eeaf69489bad1423591 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sat, 18 Jul 2020 20:43:16 +0200 Subject: Build: Enable -Wimplicit-fallthrough on clang (#25056) * Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs Related: #25006 * Misc: Add some missing breaks (no-ops) to satisfy clang Related: #25006 Closes #25055 * Build: Enable -Wimplicit-fallthrough on clang Closes #25006 --- cmake/compiler/clang/settings.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/compiler/clang') diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index 19d7222b65a..2a3ed8e1dd3 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -11,6 +11,7 @@ if(WITH_WARNINGS) -W -Wall -Wextra + -Wimplicit-fallthrough -Winit-self -Wfatal-errors -Wno-mismatched-tags -- cgit v1.2.3