← Commit list

14e4d9c3c7

Viktor Szakats
Viktor Szakats
2025-10-17
SUCCESS Duration: 230s

Subject

setopt: fix unused variable warning in minimal build

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+6 -1
@@ -870,7 +870,12 @@ static CURLcode value_range(long *value, long below_error, long min, long max)
static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
long arg)
{
+#if !defined(CURL_DISABLE_PROXY) || \
+ !defined(CURL_DISABLE_HTTP) || \
+ defined(HAVE_GSSAPI) || \
+ defined(USE_IPV6)
unsigned long uarg = (unsigned long)arg;
+#endif
bool set = FALSE;
CURLcode result = setopt_bool(data, option, arg, &set);
struct UserDefined *s = &data->set;
@@ -1097,7 +1102,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
#ifdef HAVE_GSSAPI
case CURLOPT_GSSAPI_DELEGATION:
- s->gssapi_delegation = (unsigned char)uarg&
+ s->gssapi_delegation = (unsigned char)uarg &
(CURLGSSAPI_DELEGATION_POLICY_FLAG|CURLGSSAPI_DELEGATION_FLAG);
break;
#endif