Skip to content

Commit 03f78cd

Browse files
erlend-aaslandthesamesam
authored andcommitted
fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM
Code is from gh#python/cpython!99085 (released upstream in 3.10.9) Co-authored-by: Sam James <[email protected]> Fixes: gh#python#99086 Patch: PTHREAD_SCOPE_SYSTEM-int-warning.patch
1 parent 838e317 commit 03f78cd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``-Wimplicit-int`` compiler warning in :program:`configure` check for ``PTHREAD_SCOPE_SYSTEM``.

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -10877,7 +10877,7 @@ else
1087710877
void *foo(void *parm) {
1087810878
return NULL;
1087910879
}
10880-
main() {
10880+
int main() {
1088110881
pthread_attr_t attr;
1088210882
pthread_t id;
1088310883
if (pthread_attr_init(&attr)) exit(-1);

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -3213,7 +3213,7 @@ if test "$posix_threads" = "yes"; then
32133213
void *foo(void *parm) {
32143214
return NULL;
32153215
}
3216-
main() {
3216+
int main() {
32173217
pthread_attr_t attr;
32183218
pthread_t id;
32193219
if (pthread_attr_init(&attr)) exit(-1);

0 commit comments

Comments
 (0)