diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-20 14:09:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 14:09:55 (GMT) |
commit | 9d73adf7a45035f9c3bd6771347aad912e15c373 (patch) | |
tree | 4e8508b513b9d93b1b8ec9228175d478142743ad /Modules/getnameinfo.c | |
parent | 8a1bade5106d6bc3f064eec459442fd8aa611968 (diff) | |
download | cpython-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/getnameinfo.c')
-rw-r--r-- | Modules/getnameinfo.c | 3 |
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) { |