From 528b284e4b145ff38c5ab87b4d6daa5d796fd938 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 21 May 2019 09:42:22 +0200 Subject: [PATCH] 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 --- lib/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index b106fa872..002535b42 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 */ -- 2.40.0