mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:53:31 +03:00
clang-tidy: add missing and delete redundant parentheses
Reported by clang-tidy v22.1.0. Ref: https://releases.llvm.org/22.1.0/tools/clang/tools/extra/docs/ReleaseNotes.html Closes #20749
This commit is contained in:
parent
8d28ac612b
commit
f76a54f890
6 changed files with 12 additions and 11 deletions
|
|
@ -676,9 +676,10 @@ static bool out_double(void *userp,
|
|||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
/* !checksrc! disable BANNEDFUNC 1 */
|
||||
/* !checksrc! disable LONGLINE */
|
||||
/* NOLINTNEXTLINE(clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling) */
|
||||
(snprintf)(work, BUFFSIZE, formatbuf, dnum);
|
||||
snprintf(work, BUFFSIZE, formatbuf, dnum);
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue