summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-15 20:16:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-16 10:33:02 +0000
commitb03cc1dd65908a40e804c48f52f42fc6ece63ab2 (patch)
treef1c0a18c2cc883dfcb0a67a537fb4f5be0b399fc /extensions/source
parent093a7f422c1184fb8043740cfb6a4f03ed328fa6 (diff)
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>
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/update/check/download.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx
index ba371bdee570..8f090ed9b6dd 100644
--- a/extensions/source/update/check/download.cxx
+++ b/extensions/source/update/check/download.cxx
@@ -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