curl/tests/http/clients
Viktor Szakats c730c8549b
build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0
Add tweak for mingw-w64 when building tests/http/client programs to
avoid a bogus `-Wformat` warning when using mingw-w64 v7.0.0 or older.
The warning is bogus because these programs use curl's `printf()`
implementation that is guaranteed to support that format spec.

Add this for both CMake and autotools. (But only CMake is CI tested with
an old toolchain.)

Apply the workaround to `docs/examples`, and fix an example to use
curl's `printf()` with `CURL_FORMAT_CURL_OFF_T`.

Reintroduce curl `printf()` calls into `tests/http/client`, via #14625.
Also restore large number masks to a printf, changed earlier in #14382.

Follow-up to 232302f88a #14382
Ref: https://github.com/curl/curl/pull/14625#issuecomment-2302361737

Closes #14640
2024-08-22 10:45:04 +02:00
..
.gitignore tidy-up: whitespace [ci skip] 2024-04-05 15:50:07 +00:00
CMakeLists.txt build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
h2-download.c build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
h2-pausing.c build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
h2-serverpush.c build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
h2-upgrade-extreme.c build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
Makefile.am build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
Makefile.inc cmake: add Linux CI job, fix pytest with cmake 2024-08-06 02:40:32 +02:00
tls-session-reuse.c build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
upload-pausing.c build: make CURL_FORMAT_CURL_OFF_T[U] work with mingw-w64 <=7.0.0 2024-08-22 10:45:04 +02:00
ws-data.c cmake: add Linux CI job, fix pytest with cmake 2024-08-06 02:40:32 +02:00
ws-pingpong.c cmake: add Linux CI job, fix pytest with cmake 2024-08-06 02:40:32 +02:00