diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 2c4f3dff19..57d8054ccb 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2035,6 +2035,11 @@ CURLcode Curl_ossl_verifyhost(struct Curl_easy *data, struct connectdata *conn, Curl_conn_get_host(data, FIRSTSOCKET, &hostname, &dispname, &port); hostlen = strlen(hostname); +#ifndef ENABLE_IPV6 + /* Silence compiler warnings for unused params */ + (void) conn; +#endif + #ifdef ENABLE_IPV6 if(conn->bits.ipv6_ip && Curl_inet_pton(AF_INET6, hostname, &addr)) {