diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-01-10 07:09:16 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-01-10 09:07:05 +0800 |
commit | dad44389f2f96523080e3b105eee1b1ab8b19722 (patch) | |
tree | a6de0c942276b486a5294ebb0527e08744010cb6 | |
parent | d1da011118ad8e35002034128458355a2de570ef (diff) | |
download | glibc-dad44389f2f96523080e3b105eee1b1ab8b19722.zip glibc-dad44389f2f96523080e3b105eee1b1ab8b19722.tar.gz glibc-dad44389f2f96523080e3b105eee1b1ab8b19722.tar.bz2 |
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>
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 diff --git a/configure.ac b/configure.ac index 9af8d54..050bfa6 100644 --- a/configure.ac +++ b/configure.ac @@ -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=]) |