mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:13:35 +03:00
clang-tidy: drop redundant casts
Found via `readability-redundant-casting`. Prone to false positives, not enabled. Ref: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-casting.html Closes #20630
This commit is contained in:
parent
c07c3cac74
commit
8712fac111
29 changed files with 39 additions and 41 deletions
|
|
@ -63,7 +63,7 @@ static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
|||
so we only return the size we would have saved ... */
|
||||
(void)ptr;
|
||||
(void)data;
|
||||
return (size_t)(size * nmemb);
|
||||
return size * nmemb;
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ static size_t throw_away(void *ptr, size_t size, size_t nmemb, void *data)
|
|||
(void)data;
|
||||
/* we are not interested in the headers itself,
|
||||
so we only return the size we would have saved ... */
|
||||
return (size_t)(size * nmemb);
|
||||
return size * nmemb;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue