From fd840cdead588b61a19825a06b9869ba8b9e3766 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 13 Sep 2022 14:52:33 +0200 Subject: [PATCH] formdata: typecast the va_arg return value To avoid "enumerated type mixed with another type" warnings Follow-up from 0f52dd5fd5aa3592691a Closes #9499 --- lib/formdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3