cid#1474008 silence Unchecked return value from library
Change-Id: I23228ae5d61654e2c2d401453bc741a2a6074278 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145539 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -234,9 +234,9 @@ static bool curl_run(std::u16string_view rURL, OutData& out, const OString& aPro
|
||||
(void)curl_easy_setopt(pCURL, CURLOPT_FOLLOWLOCATION, 1);
|
||||
// only allow redirect to https://
|
||||
#if (LIBCURL_VERSION_MAJOR > 7) || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 85)
|
||||
curl_easy_setopt(pCURL, CURLOPT_REDIR_PROTOCOLS_STR, "https");
|
||||
(void)curl_easy_setopt(pCURL, CURLOPT_REDIR_PROTOCOLS_STR, "https");
|
||||
#else
|
||||
curl_easy_setopt(pCURL, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS);
|
||||
(void)curl_easy_setopt(pCURL, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS);
|
||||
#endif
|
||||
|
||||
// write function
|
||||
|
Reference in New Issue
Block a user