← Commit list

25aee8648a

Viktor Szakats
Viktor Szakats
2025-10-29
SUCCESS Duration: 147s

Subject

http: fix `-Wunused-variable` in !alt-svc !proxy !ws builds

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/http.c+4 -0
@@ -2780,7 +2780,11 @@ static CURLcode http_add_hd(struct Curl_easy *data,
Curl_HttpReq httpreq)
{
CURLcode result = CURLE_OK;
+#if !defined(CURL_DISABLE_ALTSVC) || \
+ !defined(CURL_DISABLE_PROXY) || \
+ !defined(CURL_DISABLE_WEBSOCKETS)
struct connectdata *conn = data->conn;
+#endif
switch(id) {
case H1_HD_REQUEST:
/* add the main request stuff */