mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:17:16 +03:00
http: fix -Wunused-variable in !alt-svc !proxy !ws builds
```
lib/http.c:2783:23: error: unused variable 'conn' [-Werror,-Wunused-variable]
2783 | struct connectdata *conn = data->conn;
| ^~~~
1 error generated.
```
Closes #19276
This commit is contained in:
parent
7973cb0b3e
commit
25aee8648a
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue