mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
kill a compiler warning on cygwin
This commit is contained in:
parent
df7bbcfd21
commit
3cba274ba6
@ -933,6 +933,7 @@ ftp_pasv_verbose(struct connectdata *conn,
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
(void)hostent_buf; /* avoid compiler warning */
|
||||||
answer = gethostbyaddr((char *) &address, sizeof(address), AF_INET);
|
answer = gethostbyaddr((char *) &address, sizeof(address), AF_INET);
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
@ -961,7 +962,7 @@ ftp_pasv_verbose(struct connectdata *conn,
|
|||||||
#else
|
#else
|
||||||
const int niflags = NI_NUMERICHOST | NI_NUMERICSERV;
|
const int niflags = NI_NUMERICHOST | NI_NUMERICSERV;
|
||||||
#endif
|
#endif
|
||||||
port = 0; /* unused, prevent warning */
|
(void)port; /* prevent compiler warning */
|
||||||
if (getnameinfo(addr->ai_addr, addr->ai_addrlen,
|
if (getnameinfo(addr->ai_addr, addr->ai_addrlen,
|
||||||
nbuf, sizeof(nbuf), sbuf, sizeof(sbuf), niflags)) {
|
nbuf, sizeof(nbuf), sbuf, sizeof(sbuf), niflags)) {
|
||||||
snprintf(nbuf, sizeof(nbuf), "?");
|
snprintf(nbuf, sizeof(nbuf), "?");
|
||||||
|
Loading…
Reference in New Issue
Block a user