From: Daniel Gustafsson Date: Tue, 21 May 2019 07:42:22 +0000 (+0200) Subject: udpateconninfo: mark variable unused X-Git-Tag: curl-7_65_0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=528b284e4b145ff38c5ab87b4d6daa5d796fd938;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/connect.c b/lib/connect.c index b106fa8720..002535b429 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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 */