From: Amos Jeffries Date: Mon, 9 Sep 2013 06:09:27 +0000 (-0600) Subject: Windows: fix error: variable 'h_error' set but not used X-Git-Tag: SQUID_3_3_10~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=287831353281f4ce5a91298ad87b4536c12e25ee;p=thirdparty%2Fsquid.git Windows: fix error: variable 'h_error' set but not used --- diff --git a/compat/getnameinfo.c b/compat/getnameinfo.c index 76c6ec28e1..59368aced8 100644 --- a/compat/getnameinfo.c +++ b/compat/getnameinfo.c @@ -158,7 +158,6 @@ int flags; int family, i; const char *addr; uint32_t v4a; - int h_error; char numserv[512]; if (sa == NULL) @@ -260,14 +259,17 @@ found: goto numeric; } else { #if USE_GETIPNODEBY + int h_error = 0; hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error); #else hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af); +#if 0 // getnameinfo.c:161:9: error: variable 'h_error' set but not used #if HAVE_H_ERRNO h_error = h_errno; #else h_error = EINVAL; #endif +#endif /* 0 */ #endif if (hp) {