mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:05:56 +08:00
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 | ||
| curl.h | ||
| curlver.h | ||
| easy.h | ||
| header.h | ||
| Makefile.am | ||
| mprintf.h | ||
| multi.h | ||
| options.h | ||
| stdcheaders.h | ||
| system.h | ||
| typecheck-gcc.h | ||
| urlapi.h | ||
| websockets.h | ||