From: Daniel Stenberg Date: Wed, 20 Jul 2022 20:40:30 +0000 (+0200) Subject: http: typecast the httpreq assignment to avoid icc compiler warning X-Git-Tag: curl-7_85_0~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d1da2e17284dc24dcc89c4d0618609db4c341f3;p=thirdparty%2Fcurl.git http: typecast the httpreq assignment to avoid icc compiler warning error #188: enumerated type mixed with another type Closes #9179 --- diff --git a/lib/http.c b/lib/http.c index 258722a602..b0ad28e9c3 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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)