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:
Caolán McNamara
2023-01-15 20:16:31 +00:00
parent 093a7f422c
commit b03cc1dd65

View File

@@ -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