]> git.ipfire.org Git - thirdparty/curl.git/commit
formdata: fix warning: 'CURLformoption' is promoted to 'int'
authorzhanghu <zhanghu6@xiaomi.com>
Thu, 22 Apr 2021 09:10:00 +0000 (17:10 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Sep 2022 09:24:40 +0000 (11:24 +0200)
commit0f52dd5fd5aa3592691a6f6d64f6acf2a07702c9
treeb326fdc9c9400efec28b6af9e1497b1c4f946226
parentdbaa1e17a65ee2ca00a214280878845fcf81322a
formdata: fix warning: 'CURLformoption' is promoted to 'int'

curl/lib/formdata.c: In function 'FormAdd':
curl/lib/formdata.c:249:31: warning: 'CURLformoption' is promoted to 'int' when passed through '...'
  249 |       option = va_arg(params, CURLformoption);
      |                               ^
curl/lib/formdata.c:249:31: note: (so you should pass 'int' not 'CURLformoption' to 'va_arg')
curl/lib/formdata.c:249:31: note: if this code is reached, the program will abort

Closes #9484
.mailmap
lib/formdata.c