aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hostip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 5a173990b..cb63b4e1f 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -562,6 +562,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
memset(buf, 0, CURL_NAMELOOKUP_SIZE);
#ifdef HAVE_GETHOSTBYNAME_R_5
/* Solaris, IRIX and more */
+ (void)res; /* prevent compiler warning */
while(!h) {
h = gethostbyname_r(hostname,
(struct hostent *)buf,