mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:33: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
|
|
@ -953,7 +953,7 @@ static bool url_match_proxy_use(struct connectdata *conn,
|
|||
return TRUE;
|
||||
}
|
||||
#else
|
||||
#define url_match_proxy_use(c, m) ((void)c, (void)m, TRUE)
|
||||
#define url_match_proxy_use(c, m) ((void)(c), (void)(m), TRUE)
|
||||
#endif
|
||||
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
|
|
@ -1009,8 +1009,8 @@ static bool url_match_http_version(struct connectdata *conn,
|
|||
return TRUE;
|
||||
}
|
||||
#else
|
||||
#define url_match_http_multiplex(c, m) ((void)c, (void)m, TRUE)
|
||||
#define url_match_http_version(c, m) ((void)c, (void)m, TRUE)
|
||||
#define url_match_http_multiplex(c, m) ((void)(c), (void)(m), TRUE)
|
||||
#define url_match_http_version(c, m) ((void)(c), (void)(m), TRUE)
|
||||
#endif
|
||||
|
||||
static bool url_match_proto_config(struct connectdata *conn,
|
||||
|
|
@ -1178,7 +1178,7 @@ static bool url_match_auth_ntlm(struct connectdata *conn,
|
|||
return TRUE;
|
||||
}
|
||||
#else
|
||||
#define url_match_auth_ntlm(c, m) ((void)c, (void)m, TRUE)
|
||||
#define url_match_auth_ntlm(c, m) ((void)(c), (void)(m), TRUE)
|
||||
#endif
|
||||
|
||||
#ifdef USE_SPNEGO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue