aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2025-01-10 07:09:16 +0800
committerH.J. Lu <hjl.tools@gmail.com>2025-01-10 09:07:05 +0800
commitdad44389f2f96523080e3b105eee1b1ab8b19722 (patch)
treea6de0c942276b486a5294ebb0527e08744010cb6
parentd1da011118ad8e35002034128458355a2de570ef (diff)
downloadglibc-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-xconfigure2
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index b410ee4..eb8abd0 100755
--- a/configure
+++ b/configure
@@ -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=])