-Wimplicit-fallthrough=2 is added for gcc 7+

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2021-03-23 15:17:34 +01:00
parent f22cd3daaa
commit 2139f8e9e4
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -4837,7 +4837,7 @@ echo; echo
gcc_version="$(gcc -dumpversion)" gcc_version="$(gcc -dumpversion)"
extra_cflags="" extra_cflags=""
if [ "${gcc_version:0:1}" -gt 5 ]; then if [ "${gcc_version:0:1}" -gt 6 ]; then
extra_cflags="-Wimplicit-fallthrough=2" extra_cflags="-Wimplicit-fallthrough=2"
fi fi

View File

@ -524,7 +524,7 @@ echo; echo
gcc_version="$(gcc -dumpversion)" gcc_version="$(gcc -dumpversion)"
extra_cflags="" extra_cflags=""
if [[ "${gcc_version:0:1}" -gt 5 ]]; then if [[ "${gcc_version:0:1}" -gt 6 ]]; then
extra_cflags="-Wimplicit-fallthrough=2" extra_cflags="-Wimplicit-fallthrough=2"
fi fi