curl/lib/vquic
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
..
capsule.c vquic: moving related things into subdir 2026-06-02 22:48:21 +02:00
capsule.h vquic: moving related things into subdir 2026-06-02 22:48:21 +02:00
cf-capsule.c tidy-up: miscellaneous 2026-06-05 16:57:38 +02:00
cf-capsule.h vquic: moving related things into subdir 2026-06-02 22:48:21 +02:00
cf-ngtcp2-cmn.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
cf-ngtcp2-cmn.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
cf-ngtcp2-proxy.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
cf-ngtcp2-proxy.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
cf-ngtcp2.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
cf-ngtcp2.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
cf-quiche.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
cf-quiche.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
vquic-tls.c ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
vquic-tls.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
vquic.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
vquic.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
vquic_int.h clang-tidy: add more missing parentheses in macro values 2026-02-25 15:43:23 +01:00