Enable implicit fallthrough warnings for gcc/clang
This commit is contained in:
@@ -45,6 +45,7 @@ else()
|
|||||||
check_and_add_flag(INIT_SELF -Winit-self)
|
check_and_add_flag(INIT_SELF -Winit-self)
|
||||||
check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations)
|
check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations)
|
||||||
check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-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.
|
# 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
|
# In most (all?) cases where std::strncpy is used, we want to fill the entire buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user