curl/lib/curlx
Viktor Szakats 2f3fa479dd
build: enable -Wformat-signedness, fix issues found
Adjust code to avoid `-Wformat-signedness` warnings, while making sure
that enums are always cast to a known type when passing them to `printf`
functions, to support compilers and compiler settings where enums are
not default-size signed ints.

- cast integers printed as hex to `unsigned`. (63 times, 20 of them in
  `mbedtls.c`)
- cast misc enums to `int` for printing. (31 times)
- cast `CURL_LOCK_DATA_*` enums to `int`. (4 times)
- cast `CURL_FORMADD_*` enums to `int`. (13 times)
- cast `CURLSHE_*` enums to `int`. (3 times)
- cast `CURLUE_*` enums to `int`. (33 times)
- cast `CURLMSG_*` enums to `int`. (6 times)
- cast `CURLE_*` enums to `int`. (~380 times)
- unit1675: fix mask.
  Follow-up to 7c34365cce #21879

Ref: #18343 (initial attempt)

Closes #20848
2026-06-10 15:14:08 +02:00
..
base64.c
base64.h
basename.c
basename.h
dynbuf.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
dynbuf.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
fopen.c tidy-up: use uppercase TRUE/FALSE where missing 2026-06-09 12:52:08 +02:00
fopen.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
inet_ntop.c
inet_ntop.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
inet_pton.c
inet_pton.h
multibyte.c
multibyte.h
nonblock.c
nonblock.h
snprintf.c
snprintf.h
strcopy.c tidy-up: miscellaneous 2026-05-16 01:56:17 +02:00
strcopy.h
strdup.c src: add curlx_memzero() to clear buffers securely 2026-05-16 00:26:46 +02:00
strdup.h
strerr.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
strerr.h
strparse.c strparse: make curlx_str_until() accept zero for 'max' 2026-05-15 13:28:03 +02:00
strparse.h
timediff.c
timediff.h
timeval.c
timeval.h
version_win32.c
version_win32.h
wait.c
wait.h
warnless.c
warnless.h
winapi.c
winapi.h