mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-23 13:09:58 +08:00
configure: Clear libc_cv_cc_wimplicit_fallthrough if not supported
Clear libc_cv_cc_wimplicit_fallthrough if -Wimplicit-fallthrough isn't supported. Tested with GCC 6.4.1 on x86-64. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
d1da011118
commit
dad44389f2
2
configure
vendored
2
configure
vendored
@ -7888,7 +7888,7 @@ else case e in #(
|
||||
then :
|
||||
libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough
|
||||
else case e in #(
|
||||
e) libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough ;;
|
||||
e) libc_cv_cc_wimplicit_fallthrough= ;;
|
||||
esac
|
||||
fi ;;
|
||||
esac
|
||||
|
@ -1562,7 +1562,7 @@ LIBC_TRY_CC_AND_TEST_CC_OPTION([for -Wimplicit-fallthrough],
|
||||
[-Werror -Wimplicit-fallthrough],
|
||||
libc_cv_cc_wimplicit_fallthrough,
|
||||
[libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough],
|
||||
[libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough],
|
||||
[libc_cv_cc_wimplicit_fallthrough=],
|
||||
libc_cv_test_cc_wimplicit_fallthrough,
|
||||
[libc_cv_test_cc_wimplicit_fallthrough=-Wimplicit-fallthrough],
|
||||
[libc_cv_test_cc_wimplicit_fallthrough=])
|
||||
|
Loading…
Reference in New Issue
Block a user