From 9b3fc492d36a3e215809535e90d402dbeee41966 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 24 Oct 2004 00:54:12 +0000 Subject: If we're going to test for switch validity by observing whether the compiler emits any warnings, the test program had better be 100% correct, not only 90% correct. The recent addition of -Wold-style-definition broke thread-safety detection on every platform that has that switch, because the test program used an old-style definition. --- config/acx_pthread.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/acx_pthread.m4 b/config/acx_pthread.m4 index 5f9071056e..254a383a9b 100644 --- a/config/acx_pthread.m4 +++ b/config/acx_pthread.m4 @@ -134,8 +134,10 @@ for flag in $acx_pthread_flags; do # We find them by checking stderror. cat >conftest.$ac_ext <<_ACEOF int -main () +main (int argc, char **argv) { + (void) argc; + (void) argv; return 0; } _ACEOF -- cgit v1.2.1