http: typecast the httpreq assignment to avoid icc compiler warning

error #188: enumerated type mixed with another type

Closes #9179
This commit is contained in:
Daniel Stenberg 2022-07-20 22:40:30 +02:00
parent dcbc9226bc
commit 8d1da2e172
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2032,7 +2032,7 @@ CURLcode Curl_add_timecondition(struct Curl_easy *data,
void Curl_http_method(struct Curl_easy *data, struct connectdata *conn,
const char **method, Curl_HttpReq *reqp)
{
Curl_HttpReq httpreq = data->state.httpreq;
Curl_HttpReq httpreq = (Curl_HttpReq)data->state.httpreq;
const char *request;
if((conn->handler->protocol&(PROTO_FAMILY_HTTP|CURLPROTO_FTP)) &&
data->set.upload)