curl/m4
Daniel Stenberg 145f87b9e8
build: use -Wno-format-overflow
-Wformat-overflow is not a warning that we want enabled as it does not
help us. It can only bring us false positives since it warns on bad uses
of sprintf and vsprintf ("that might overflow the destination buffer").
Two functions we explicitly ban in curl code.

The only way this flag triggers warnings in curl code is false positives
for functions we have marked with the CURL_PRINTF() macro.

Further: it seems -Wformat-trunaction option might in turn also enable
-Wformat-overflow, so if this second option is used, we need to
explicitly set -Wno-format-overflow - not just skip setting
-Wformat-overflow.

Reported-by: Viktor Szakats
Fixes #14168
Closes #14598
2024-08-19 23:20:45 +02:00
..
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-amissl.m4 tidy-up: use OPENSSL_VERSION_NUMBER 2023-11-08 17:55:22 +00:00
curl-bearssl.m4 tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
curl-compilers.m4 build: use -Wno-format-overflow 2024-08-19 23:20:45 +02:00
curl-confopts.m4 configure: use AC_MSG_WARN for TLS/experimental warning texts 2024-06-13 17:17:15 +02:00
curl-functions.m4 tidy-up: OS names 2024-08-04 19:17:45 +02:00
curl-gnutls.m4 cmake: detect nettle when building with GnuTLS 2024-07-29 20:41:39 +02:00
curl-mbedtls.m4 libcurl.pc: add Requires.private, Requires for static linking 2024-06-13 11:17:33 +02:00
curl-openssl.m4 GHA/configure-vs-cmake: add macOS build, fix issues 2024-08-15 09:29:07 +02:00
curl-override.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-reentrant.m4 build: use #error instead of invalid syntax 2024-07-14 14:03:00 +02:00
curl-rustls.m4 libcurl.pc: add Requires.private, Requires for static linking 2024-06-13 11:17:33 +02:00
curl-schannel.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-sectransp.m4 cmake, configure: also link with CoreServices 2023-09-20 08:38:19 +02:00
curl-sysconfig.m4 configure: fix SystemConfiguration detection 2024-07-10 11:30:40 +02:00
curl-wolfssl.m4 tidy-up: adjust casing of project names 2024-07-12 13:56:16 +02:00
xc-am-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-cc-check.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-lt-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-val-flgs.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz40-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz50-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz60-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00