From 3cba274ba6fa59f9351290a30143a366e88cb385 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Apr 2003 14:16:15 +0000 Subject: [PATCH] kill a compiler warning on cygwin --- lib/ftp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index cbac02f5b..b00490247 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -933,6 +933,7 @@ ftp_pasv_verbose(struct connectdata *conn, # endif # else + (void)hostent_buf; /* avoid compiler warning */ answer = gethostbyaddr((char *) &address, sizeof(address), AF_INET); # endif #else @@ -961,7 +962,7 @@ ftp_pasv_verbose(struct connectdata *conn, #else const int niflags = NI_NUMERICHOST | NI_NUMERICSERV; #endif - port = 0; /* unused, prevent warning */ + (void)port; /* prevent compiler warning */ if (getnameinfo(addr->ai_addr, addr->ai_addrlen, nbuf, sizeof(nbuf), sbuf, sizeof(sbuf), niflags)) { snprintf(nbuf, sizeof(nbuf), "?");