Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b3fc49

Browse files
committed
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-definitionbroke thread-safety detection on every platform that has that switch,because the test program used an old-style definition.
1 parent8b9aaea commit9b3fc49

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎config/acx_pthread.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ for flag in $acx_pthread_flags; do
134134
# We find them by checking stderror.
135135
cat >conftest.$ac_ext <<_ACEOF
136136
int
137-
main ()
137+
main (int argc, char **argv)
138138
{
139+
(void) argc;
140+
(void) argv;
139141
return 0;
140142
}
141143
_ACEOF

‎configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13606,8 +13606,10 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1360613606
# We find them by checking stderror.
1360713607
cat >conftest.$ac_ext <<_ACEOF
1360813608
int
13609-
main ()
13609+
main (int argc, char **argv)
1361013610
{
13611+
(void) argc;
13612+
(void) argv;
1361113613
return 0;
1361213614
}
1361313615
_ACEOF

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp