examples: return curl_easy_perform() results

Where missing. Or explicitly `(void)` it where we ignore it on purpose.

Reported-by: Joshua Rogers (for `sepheaders.c`)

Closes #19052
This commit is contained in:
Viktor Szakats 2025-10-13 16:18:40 +02:00
parent 5cf0a6789d
commit 3049c8e0a0
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 10 additions and 7 deletions

View file

@ -64,7 +64,7 @@ static void *pull_one_url(void *pindex)
might be downloading stuff from an impostor */
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_perform(curl); /* ignores error */
(void)curl_easy_perform(curl); /* ignores error */
curl_easy_cleanup(curl);
return NULL;