summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-07 16:21:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-07 19:54:39 +0000
commit6285297c6933fa9121d7dd412b1f1daaa8b072a5 (patch)
tree27c592cd72abd9344f9064b77893ad19a81fd3b9 /lingucomponent
parentad5005c3bfb6105e92e52111c3093312a6cb8ff2 (diff)
cid#1520803 silence Unchecked return value from library
Change-Id: I47bfb2b64526d47c2a064e3bb3d93474420825af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146613 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx
index 9fb8a53bb300..ff38eb67d172 100644
--- a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx
+++ b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx
@@ -421,24 +421,24 @@ std::string LanguageToolGrammarChecker::makeDudenHttpRequest(std::string_view aU
if (!sAccessToken.isEmpty())
pList = curl_slist_append(pList, sAccessToken.getStr());
- curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER, pList);
- curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
- curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data());
- curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
- curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
- curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&sResponseBody));
+ (void)curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER, pList);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data());
+ (void)curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&sResponseBody));
// allow unknown or self-signed certificates
if (rLanguageOpts.getSSLVerification() == false)
{
- curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
- curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
}
if (method == HTTP_METHOD::HTTP_POST)
{
- curl_easy_setopt(curl.get(), CURLOPT_POST, 1L);
- curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, aData.getStr());
+ (void)curl_easy_setopt(curl.get(), CURLOPT_POST, 1L);
+ (void)curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, aData.getStr());
}
CURLcode cc = curl_easy_perform(curl.get());