curl/CMake
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
..
Platforms build: tidy up __builtin_available feature checks (Apple) 2024-07-10 11:42:46 +02:00
cmake_uninstall.cmake.in cmake: more small tidy-ups and fixes 2024-08-08 13:48:28 +02:00
CMakeConfigurableFile.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-config.cmake.in cmake: add CURL_USE_PKGCONFIG option 2024-08-13 09:28:27 +02:00
CurlSymbolHiding.cmake cmake: tidy-up continues 2024-08-17 00:32:38 +02:00
CurlTests.c cmake: tidy-ups 2024-08-03 20:49:15 +02:00
FindBearSSL.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindBrotli.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindCARES.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindGSS.cmake cmake: fix cmakelint warnings 2024-08-18 22:53:09 +02:00
FindLibPSL.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindLibSSH2.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindMbedTLS.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindMSH3.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindNettle.cmake cmake/FindNettle: log message when found via pkg-config 2024-08-19 14:09:14 +02:00
FindNGHTTP2.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindNGHTTP3.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindNGTCP2.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindQUICHE.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
Findrustls.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindWolfSSH.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindWolfSSL.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
FindZstd.cmake cmake: tidy up more in Find modules 2024-08-18 22:53:09 +02:00
Macros.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
OtherTests.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
PickyWarnings.cmake build: use -Wno-format-overflow 2024-08-19 23:20:45 +02:00
Utilities.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00