mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:13:31 +03:00
clang-tidy: fix issues found with build-fuzzing
- curl_sha512_256: add missing, drop redundant, parentheses.
- doh: drop redundant returns.
- url: add missing parentheses.
- vtls: fix unused const variables.
- tests/unit: fix missing header with clang-tidy and !threaded-resolver.
Follow-up to 57ff2d6c91 #20106
Closes #20774
This commit is contained in:
parent
bcc8144b89
commit
35bbb2e830
7 changed files with 19 additions and 20 deletions
|
|
@ -201,7 +201,6 @@ static void doh_print_buf(struct Curl_easy *data,
|
|||
infof(data, "%s: len=%d, val=%s", prefix, (int)len, hexstr);
|
||||
else
|
||||
infof(data, "%s: len=%d (truncated)val=%s", prefix, (int)len, hexstr);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -1191,7 +1190,6 @@ UNITTEST void doh_print_httpsrr(struct Curl_easy *data,
|
|||
}
|
||||
else
|
||||
infof(data, "HTTPS RR: no ipv6hints");
|
||||
return;
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue