diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2025-08-22 15:56:27 -0700 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2025-08-22 17:56:09 -0700 |
| commit | ee06d98c5b9161fcaa03c562860d6ec4a8700cd2 (patch) | |
| tree | b25b9a7c1ea764498b82873793abe23e35502971 /configure.ac | |
| parent | dd4394b2493940ce0ec4525a21be4e2e9db483d0 (diff) | |
Don't use -Wfree-labels/-Wmissing-parameter-name if unsupported
Don't use -Wfree-labels/-Wmissing-parameter-name for "make check" if
they are unsupported by TEST_CC.
This fixes BZ #33310.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cababbf3f3..7eec66933e 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]) -AC_SUBST(libc_cv_test_cc_wfree_labels) +LIBC_CONFIG_VAR([test-cc-option-wfree-labels], [$libc_cv_test_cc_wfree_labels]) LIBC_TRY_CC_AND_TEST_CC_OPTION([for -Wmissing-parameter-name], [-Werror -Wmissing-parameter-name], @@ -1623,7 +1623,8 @@ 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]) -AC_SUBST(libc_cv_test_cc_wmissing_parameter_name) +LIBC_CONFIG_VAR([test-cc-option-wmissing-parameter-name], + [$libc_cv_test_cc_wmissing_parameter_name]) conftest_code=" void bar (void (*callback) (void)); |
