clang-tidy: check readability-redundant-preprocessor, fix fallouts

Also:
- cipher_suite: merge `USE_MBEDTLS` `#if` blocks.

Ref: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-preprocessor.html

Closes #20628
This commit is contained in:
Viktor Szakats 2026-02-18 14:27:20 +01:00
parent bd60df527c
commit 3cdc167425
No known key found for this signature in database
4 changed files with 2 additions and 13 deletions

View file

@ -281,13 +281,11 @@ void tool_help(const char *category)
curl_msnprintf(cmdbuf, sizeof(cmdbuf), "\n --no-%s", a->lname);
else
curl_msnprintf(cmdbuf, sizeof(cmdbuf), "\n %s", category);
#ifdef USE_MANUAL
if(a->cmd == C_XATTR)
/* this is the last option, which then ends when FILES starts */
showhelp("\nALL OPTIONS\n", cmdbuf, "\nFILES");
else
showhelp("\nALL OPTIONS\n", cmdbuf, "\n -");
#endif
}
#else
curl_mfprintf(tool_stderr, "Cannot comply. "