]> granicus.if.org Git - curl/commitdiff
kill a compiler warning on cygwin
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2003 14:16:15 +0000 (14:16 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2003 14:16:15 +0000 (14:16 +0000)
lib/ftp.c

index cbac02f5b11358152c942417075378290939cfc6..b004902474c9c94425ff8e2828d2b5b168ecd4a7 100644 (file)
--- 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), "?");