curl/tests/server
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
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
dnsd.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
first.c build: use more const 2026-02-02 12:32:49 +01:00
first.h build: include curlx headers directly in src and tests 2026-03-16 12:05:39 +01:00
getpart.c tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tests/server: drop unused curlx/version_win32.c 2026-03-08 18:17:11 +01:00
mqttd.c tidy-up: miscellaneous 2026-04-30 20:22:23 +02:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c tidy-up: use uppercase TRUE/FALSE where missing 2026-06-09 12:52:08 +02:00
sockfilt.c tidy-up: use uppercase TRUE/FALSE where missing 2026-06-09 12:52:08 +02:00
socksd.c tidy-up: use uppercase TRUE/FALSE where missing 2026-06-09 12:52:08 +02:00
sws.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
tftpd.c tidy-up: use uppercase TRUE/FALSE where missing 2026-06-09 12:52:08 +02:00
util.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00