From 02bffba368e99efbd18b35b1103523b1f26b1826 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Fri, 7 Aug 2026 19:35:01 +1200 Subject: [PATCH] Enable implicit fallthrough warnings for gcc/clang --- Source/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 7871083785..5a65524555 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -45,6 +45,7 @@ else() check_and_add_flag(INIT_SELF -Winit-self) check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations) check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations) + check_and_add_flag(IMPLICIT_FALLTHROUGH -Wimplicit-fallthrough) # Disable -Wstringop-truncation warnings as they result in many false positives. # In most (all?) cases where std::strncpy is used, we want to fill the entire buffer