← Commit list

5d1ac48088

Daniel Stenberg
Daniel Stenberg
2026-06-15
SUCCESS Duration: 168s

Subject

setopt: mark function argument as unused *properly*

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/setopt.c+1 -1
@@ -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);