diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-04-03 14:16:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-04-03 14:16:15 +0000 |
commit | 3cba274ba6fa59f9351290a30143a366e88cb385 (patch) | |
tree | c67832a48b0015af122a3ae3773a04891c4ab8ff /lib | |
parent | df7bbcfd21909d2eb474b75a110bb2cde07c8d76 (diff) |
kill a compiler warning on cygwin
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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), "?"); |