From: Daniel Stenberg Date: Tue, 13 Sep 2022 12:52:33 +0000 (+0200) Subject: formdata: typecast the va_arg return value X-Git-Tag: curl-7_86_0~239 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd840cdead588b61a19825a06b9869ba8b9e3766;p=thirdparty%2Fcurl.git formdata: typecast the va_arg return value To avoid "enumerated type mixed with another type" warnings Follow-up from 0f52dd5fd5aa3592691a Closes #9499 --- diff --git a/lib/formdata.c b/lib/formdata.c index 3128f495b1..46542b4329 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -254,7 +254,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost, /* This is not array-state, get next option. This gets an 'int' with va_arg() because CURLformoption might be a smaller type than int and might cause compiler warnings and wrong behavior. */ - option = va_arg(params, int); + option = (CURLformoption)va_arg(params, int); if(CURLFORM_END == option) break; }