summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-05-27 07:14:58 +0200
committerFlorian Weimer <fweimer@redhat.com>2025-05-27 07:15:06 +0200
commit03da41d47dc73674307e6ffc5b75e9043febc698 (patch)
treedfd87a536bf49cf1a14a36d4456d3a229e09456b /configure.ac
parent99c70ae6e9e4214e6be71d48d174576a50e350a7 (diff)
Turn on -Wmissing-parameter-name by default if available
This flags another hazard for backporting changes to earlier branches. Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6cf66c82a1..6d00b473e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1586,6 +1586,18 @@ LIBC_TRY_CC_AND_TEST_CC_OPTION([for -Wfree-labels],
LIBC_CONFIG_VAR([cc-option-wfree-labels], [$libc_cv_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],
+ libc_cv_cc_wmissing_parameter_name,
+ [libc_cv_cc_wmissing_parameter_name=-Wmissing-parameter-name],
+ [libc_cv_cc_wmissing_parameter_name=],
+ libc_cv_test_cc_wmissing_parameter_name,
+ [libc_cv_test_cc_wmissing_parameter_name=-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)
+
conftest_code="
void bar (void (*callback) (void));
int foo (void)