mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:51:59 +01:00
-Wimplicit-fallthrough=2 is added for gcc 7+
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
f22cd3daaa
commit
2139f8e9e4
2
configure
vendored
2
configure
vendored
@ -4837,7 +4837,7 @@ echo; echo
|
||||
|
||||
gcc_version="$(gcc -dumpversion)"
|
||||
extra_cflags=""
|
||||
if [ "${gcc_version:0:1}" -gt 5 ]; then
|
||||
if [ "${gcc_version:0:1}" -gt 6 ]; then
|
||||
extra_cflags="-Wimplicit-fallthrough=2"
|
||||
fi
|
||||
|
||||
|
@ -524,7 +524,7 @@ echo; echo
|
||||
|
||||
gcc_version="$(gcc -dumpversion)"
|
||||
extra_cflags=""
|
||||
if [[ "${gcc_version:0:1}" -gt 5 ]]; then
|
||||
if [[ "${gcc_version:0:1}" -gt 6 ]]; then
|
||||
extra_cflags="-Wimplicit-fallthrough=2"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user