Commit 9b3fc492 authored by Tom Lane's avatar Tom Lane

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.
parent 8b9aaea8
...@@ -134,8 +134,10 @@ for flag in $acx_pthread_flags; do ...@@ -134,8 +134,10 @@ for flag in $acx_pthread_flags; do
# We find them by checking stderror. # We find them by checking stderror.
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
int int
main () main (int argc, char **argv)
{ {
(void) argc;
(void) argv;
return 0; return 0;
} }
_ACEOF _ACEOF
......
...@@ -13606,8 +13606,10 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ...@@ -13606,8 +13606,10 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
# We find them by checking stderror. # We find them by checking stderror.
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
int int
main () main (int argc, char **argv)
{ {
(void) argc;
(void) argv;
return 0; return 0;
} }
_ACEOF _ACEOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment