```
lib/http.c:2783:23: error: unused variable 'conn' [-Werror,-Wunused-variable]
2783 | struct connectdata *conn = data->conn;
| ^~~~
1 error generated.
```
Closes #19276
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 */