Enable implicit fallthrough warnings for gcc/clang

This commit is contained in:
Scott Mansell
2026-08-07 19:35:01 +12:00
parent a6cf98332b
commit 02bffba368

View File

@@ -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