summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-20 14:09:55 (GMT)
committerGitHub <noreply@github.com>2022-06-20 14:09:55 (GMT)
commit9d73adf7a45035f9c3bd6771347aad912e15c373 (patch)
tree4e8508b513b9d93b1b8ec9228175d478142743ad /Modules/socketmodule.c
parent8a1bade5106d6bc3f064eec459442fd8aa611968 (diff)
downloadcpython-9d73adf7a45035f9c3bd6771347aad912e15c373.zip
cpython-9d73adf7a45035f9c3bd6771347aad912e15c373.tar.gz
cpython-9d73adf7a45035f9c3bd6771347aad912e15c373.tar.bz2
gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025)
(cherry picked from commit 774ef28814d0d9d57ec813cb31b0a7af6c476127) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 392cc32..271e79f 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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