qemu-cr16/contrib/elf2dmp
Richard W.M. Jones ed26056d90 block/curl.c: Use explicit long constants in curl_easy_setopt calls
curl_easy_setopt takes a variable argument that depends on what
CURLOPT you are setting.  Some require a long constant.  Passing a
plain int constant is potentially wrong on some platforms.

With warnings enabled, multiple warnings like this were printed:

../block/curl.c: In function ‘curl_init_state’:
../block/curl.c:474:13: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
  474 |             curl_easy_setopt(state->curl, CURLOPT_AUTOREFERER, 1) ||
      |             ^

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Chenxi Mao <maochenxi@bosc.ac.cn>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251009141026.4042021-2-rjones@redhat.com>
2025-10-10 08:24:14 -07:00
..
addrspace.c contrib/elf2dmp: Ensure segment fits in file 2024-03-11 17:06:06 +00:00
addrspace.h contrib/elf2dmp: Fix error reporting style in addrspace.c 2024-03-11 17:06:06 +00:00
download.c block/curl.c: Use explicit long constants in curl_easy_setopt calls 2025-10-10 08:24:14 -07:00
download.h contrib/elf2dmp: Fix error reporting style in download.c 2024-03-11 17:06:06 +00:00
err.h
kdbg.h contrib/elf2dmp: fix structures definitions 2019-02-05 16:50:17 +01:00
main.c contrib/elf2dmp: Use rol64() to decode 2024-03-11 17:06:06 +00:00
meson.build meson: build contrib/ executables after generated headers 2022-01-12 14:09:06 +01:00
pdb.c contrib: replace FSF postal address with licenses URL 2025-06-26 00:42:37 +02:00
pdb.h contrib/elf2dmp: Fix error reporting style in pdb.c 2024-03-11 17:06:06 +00:00
pe.h contrib/elf2dmp: add PE name check and Windows Server 2022 support 2023-03-21 13:19:07 +00:00
qemu_elf.c contrib/elf2dmp: Ensure phdrs fit in file 2024-03-11 17:06:27 +00:00
qemu_elf.h contrib/elf2dmp: Fix error reporting style in qemu_elf.c 2024-03-11 17:06:06 +00:00