mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:20:11 +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)"
|
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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user