gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025)

(cherry picked from commit 774ef28814)

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Victor Stinner 2022-06-20 16:09:55 +02:00 committed by GitHub
parent 8a1bade510
commit 9d73adf7a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View file

@ -996,6 +996,7 @@ init_sockobject(PySocketSockObject *s,
}
#ifdef HAVE_SOCKETPAIR
/* Create a new socket object.
This just creates the object and initializes it.
If the creation fails, return NULL and set an exception (implicit
@ -1015,6 +1016,7 @@ new_sockobject(SOCKET_T fd, int family, int type, int proto)
}
return s;
}
#endif
/* Lock to allow python interpreter to continue, but only allow one