summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortastytea2020-01-10 14:35:44 +0100
committertastytea2020-01-10 14:35:44 +0100
commitda033c3ffc10f84240ca09effd1c1fe0d32ced9c (patch)
treeb36a6e02a1b7a2c768c2a0e0954153e4312fcf1d /src
parentcb7019a0fdc1ee861a5a2ab65d49845d7b194bb8 (diff)
downloadmastodonpp-da033c3ffc10f84240ca09effd1c1fe0d32ced9c.tar
mastodonpp-da033c3ffc10f84240ca09effd1c1fe0d32ced9c.tar.gz
mastodonpp-da033c3ffc10f84240ca09effd1c1fe0d32ced9c.zip
Silence clang-tidy warnings I can't do anything about.
Diffstat (limited to 'src')
-rw-r--r--src/curl_wrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp
index b4ba74e..18ab7a0 100644
--- a/src/curl_wrapper.cpp
+++ b/src/curl_wrapper.cpp
@@ -175,7 +175,7 @@ answer_type CURLWrapper::make_request(const http_method &method, string uri,
void CURLWrapper::set_access_token(const string_view access_token)
{
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
CURLcode code{curl_easy_setopt(_connection, CURLOPT_XOAUTH2_BEARER,
access_token.data())};
if (code != CURLE_OK)
@@ -184,11 +184,11 @@ void CURLWrapper::set_access_token(const string_view access_token)
_curl_buffer_error};
}
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
code = curl_easy_setopt(_connection, CURLOPT_HTTPAUTH, CURLAUTH_BEARER);
if (code == CURLE_NOT_BUILT_IN) // libcurl < 7.61.0.
{
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
code = curl_easy_setopt(_connection, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
}
if (code != CURLE_OK)