]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: typecast the httpreq assignment to avoid icc compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Jul 2022 20:40:30 +0000 (22:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 23 Jul 2022 11:39:00 +0000 (13:39 +0200)
 error #188: enumerated type mixed with another type

Closes #9179

lib/http.c

index 258722a602e409f741ad8fcd5fcbf7bbd6d28ff8..b0ad28e9c3ca468ec8e2895acd662d0551077588 100644 (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)