mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
3829759bd0
https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html as of 2023-11-29 [1]. Enable new recommended warnings (except `-Wsign-conversion`): - enable `-Wformat=2` for clang (in both cmake and autotools). - add `CURL_PRINTF()` internal attribute and mark functions accepting printf arguments with it. This is a copy of existing `CURL_TEMP_PRINTF()` but using `__printf__` to make it compatible with redefinting the `printf` symbol: https://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_5.html#SEC94 - fix `CURL_PRINTF()` and existing `CURL_TEMP_PRINTF()` for mingw-w64 and enable it on this platform. - enable `-Wimplicit-fallthrough`. - enable `-Wtrampolines`. - add `-Wsign-conversion` commented with a FIXME. - cmake: enable `-pedantic-errors` the way we do it with autotools. Follow-up to |
||
---|---|---|
.. | ||
.gitignore | ||
curl-amissl.m4 | ||
curl-bearssl.m4 | ||
curl-compilers.m4 | ||
curl-confopts.m4 | ||
curl-functions.m4 | ||
curl-gnutls.m4 | ||
curl-mbedtls.m4 | ||
curl-openssl.m4 | ||
curl-override.m4 | ||
curl-reentrant.m4 | ||
curl-rustls.m4 | ||
curl-schannel.m4 | ||
curl-sectransp.m4 | ||
curl-sysconfig.m4 | ||
curl-wolfssl.m4 | ||
xc-am-iface.m4 | ||
xc-cc-check.m4 | ||
xc-lt-iface.m4 | ||
xc-translit.m4 | ||
xc-val-flgs.m4 | ||
zz40-xc-ovr.m4 | ||
zz50-xc-ovr.m4 | ||
zz60-xc-ovr.m4 |