build: add -Wswitch-enum and -Wunreachable-code to strict flags
This commit is contained in:
parent
9836774466
commit
e6a2b2b2d4
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
|
@ -512,7 +512,7 @@ generate_build_mk() {
|
||||||
|
|
||||||
# Strict flags
|
# Strict flags
|
||||||
if [ "$ENABLE_STRICT" = "yes" ]; then
|
if [ "$ENABLE_STRICT" = "yes" ]; then
|
||||||
strict_flags="-Wpedantic -Wconversion -Wshadow -Wcast-align -Wstrict-prototypes -Wvla"
|
strict_flags="-Wpedantic -Wconversion -Wshadow -Wcast-align -Wstrict-prototypes -Wvla -Wswitch-enum -Wunreachable-code"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# libicmp-specific configuration
|
# libicmp-specific configuration
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue