From 5d1ac48088cf4e04e689e98732024997b56d1511 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 15 Jun 2026 22:58:19 +0200 Subject: [PATCH] setopt: mark function argument as unused *properly* Closes #22035 --- lib/setopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setopt.c b/lib/setopt.c index e56d69129e..00dda4ea29 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -326,7 +326,7 @@ CURLcode Curl_setopt_SSLVERSION(struct Curl_easy *data, CURLoption option, if(option != CURLOPT_SSLVERSION) primary = &data->set.proxy_ssl.primary; #else - if(option) {} + (void)option; /* unused */ #endif version = C_SSLVERSION_VALUE(arg); version_max = (long)C_SSLVERSION_MAX_VALUE(arg);