Skip to content

Commit

Permalink
fix implicit int compiler warning in configure check for PTHREAD_SCOP…
Browse files Browse the repository at this point in the history
…E_SYSTEM

Code is from gh#python/cpython!99085 (released upstream in 3.10.9)

Co-authored-by: Sam James <sam@cmpct.info>
Fixes: pythongh-99086
Patch: PTHREAD_SCOPE_SYSTEM-int-warning.patch
  • Loading branch information
2 people authored and mcepl committed Apr 5, 2024
1 parent 869c3f7 commit 269b355
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``-Wimplicit-int`` compiler warning in :program:`configure` check for ``PTHREAD_SCOPE_SYSTEM``.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -10877,7 +10877,7 @@ else
void *foo(void *parm) {
return NULL;
}
main() {
int main() {
pthread_attr_t attr;
pthread_t id;
if (pthread_attr_init(&attr)) exit(-1);
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3213,7 +3213,7 @@ if test "$posix_threads" = "yes"; then
void *foo(void *parm) {
return NULL;
}
main() {
int main() {
pthread_attr_t attr;
pthread_t id;
if (pthread_attr_init(&attr)) exit(-1);
Expand Down

0 comments on commit 269b355

Please sign in to comment.