mirror of
https://github.com/curl/curl.git
synced 2026-05-30 13:17:28 +03:00
udpateconninfo: mark variable unused
When compiling without getpeername() or getsockname(), the sockfd
paramter to Curl_udpateconninfo() became unused after commit e91e481612
added ifdef guards.
Closes #3910
Fixes https://curl.haxx.se/dev/log.cgi?id=20190520172441-32196
Reviewed-by: Marcel Raad, Daniel Stenberg
This commit is contained in:
parent
8986d3c6f4
commit
528b284e4b
1 changed files with 2 additions and 0 deletions
|
|
@ -726,6 +726,8 @@ void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
#else /* !HAVE_GETSOCKNAME && !HAVE_GETPEERNAME */
|
||||
(void)sockfd; /* unused */
|
||||
#endif
|
||||
|
||||
/* persist connection info in session handle */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue