summaryrefslogtreecommitdiffstats
path: root/Modules/getnameinfo.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-20 11:34:40 (GMT)
committerGitHub <noreply@github.com>2022-06-20 11:34:40 (GMT)
commit774ef28814d0d9d57ec813cb31b0a7af6c476127 (patch)
treeb14188c8f6e7a6a789f6f4c2e8f63b5c0e01808b /Modules/getnameinfo.c
parentaffa9f22cfd1e83a5fb413e5ce2feef9ea1a49ac (diff)
downloadcpython-774ef28814d0d9d57ec813cb31b0a7af6c476127.zip
cpython-774ef28814d0d9d57ec813cb31b0a7af6c476127.tar.gz
cpython-774ef28814d0d9d57ec813cb31b0a7af6c476127.tar.bz2
gh-84461: Silence some compiler warnings on WASM (GH-93978)
Diffstat (limited to 'Modules/getnameinfo.c')
-rw-r--r--Modules/getnameinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c
index f014c11..db3e8ee 100644
--- a/Modules/getnameinfo.c
+++ b/Modules/getnameinfo.c
@@ -104,8 +104,8 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
u_long v4a;
#ifdef ENABLE_IPV6
u_char pfx;
-#endif
int h_error;
+#endif
char numserv[512];
char numaddr[512];
@@ -181,7 +181,6 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
hp = getipnodebyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af, &h_error);
#else
hp = gethostbyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af);
- h_error = h_errno;
#endif
if (hp) {