summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2025-08-22 18:03:46 -0700
committerH.J. Lu <hjl.tools@gmail.com>2025-08-22 18:03:46 -0700
commitd142b7d20538d310abb3f3d8f372988552217ca4 (patch)
treefb145f1436d0ceaf1e61668871d21178aa67ead7 /configure.ac
parentee06d98c5b9161fcaa03c562860d6ec4a8700cd2 (diff)
Revert "Don't use -Wfree-labels/-Wmissing-parameter-name if unsupported"
This reverts commit ee06d98c5b9161fcaa03c562860d6ec4a8700cd2.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 7eec66933e..cababbf3f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1611,7 +1611,7 @@ LIBC_TRY_CC_AND_TEST_CC_OPTION([for -Wfree-labels],
[libc_cv_test_cc_wfree_labels=-Wfree-labels],
[libc_cv_test_cc_wfree_labels=])
LIBC_CONFIG_VAR([cc-option-wfree-labels], [$libc_cv_cc_wfree_labels])
-LIBC_CONFIG_VAR([test-cc-option-wfree-labels], [$libc_cv_test_cc_wfree_labels])
+AC_SUBST(libc_cv_test_cc_wfree_labels)
LIBC_TRY_CC_AND_TEST_CC_OPTION([for -Wmissing-parameter-name],
[-Werror -Wmissing-parameter-name],
@@ -1623,8 +1623,7 @@ LIBC_TRY_CC_AND_TEST_CC_OPTION([for -Wmissing-parameter-name],
[libc_cv_test_cc_wmissing_parameter_name=])
LIBC_CONFIG_VAR([cc-option-wmissing-parameter-name],
[$libc_cv_cc_wmissing_parameter_name])
-LIBC_CONFIG_VAR([test-cc-option-wmissing-parameter-name],
- [$libc_cv_test_cc_wmissing_parameter_name])
+AC_SUBST(libc_cv_test_cc_wmissing_parameter_name)
conftest_code="
void bar (void (*callback) (void));