]> git.ipfire.org Git - thirdparty/curl.git/commit
build: delete/replace clang warning pragmas
authorViktor Szakats <commit@vsz.me>
Sat, 27 Jan 2024 17:40:38 +0000 (17:40 +0000)
committerViktor Szakats <commit@vsz.me>
Sat, 27 Jan 2024 21:19:41 +0000 (21:19 +0000)
commit5b286c250829e06a135a6ba998e80beb7f43a734
treeed7c350548ff61b454e5ca98fe8df8bba5f12432
parentecb5d6bee9da7a6a0687f4eed0798268cce87d46
build: delete/replace clang warning pragmas

- delete redundant warning suppressions for `-Wformat-nonliteral`.
  This now relies on `CURL_PRINTF()` and it's theoratically possible
  that this macro isn't active but the warning is. We're ignoring this
  as a corner-case here.

- replace two pragmas with code changes to avoid the warnings.

Follow-up to aee4ebe59161d0a5281743f96e7738ad97fe1cd4 #12803
Follow-up to 09230127589eccc7e01c1a7217787ef8e64f3328 #12540
Follow-up to 3829759bd042c03225ae862062560f568ba1a231 #12489

Reviewed-by: Daniel Stenberg
Closes #12812
lib/curl_trc.c
lib/dict.c
lib/dynbuf.c
lib/memdebug.c
lib/mime.c
src/tool_easysrc.c
src/tool_msgs.c
src/tool_setopt.c
tests/libtest/lib1560.c