Change mingw-w64 printf format checks in public curl headers to use `__MINGW_PRINTF_FORMAT` instead of `gnu_printf`. This syncs the format checker with format string macros published via `curl/system.h`. (Also disable format checks for mingw-w64 older than 3.0.0 (2013-09-20) and classic-mingw, which do not support this macro.) This fixes bogus format checker `-Wformat` warnings in 3rd party code using curl format strings with the curl printf functions, when using mingw-w64 7.0.0 (2019-11-10) and older (with GCC, MSVCRT). It also allows to delete two workaounds for this within curl itself: - setting `-D__USE_MINGW_ANSI_STDIO=1` for mingw-w64 via cmake and configure for `docs/examples` and `tests/http/clients`. Ref: |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| h2-download.c | ||
| h2-pausing.c | ||
| h2-serverpush.c | ||
| h2-upgrade-extreme.c | ||
| Makefile.am | ||
| Makefile.inc | ||
| tls-session-reuse.c | ||
| upload-pausing.c | ||
| ws-data.c | ||
| ws-pingpong.c | ||