8000 Fix CI warnings · open-telemetry/opentelemetry-cpp@f9d7383 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9d7383

Browse files
committed
Fix CI warnings
1 parent 361e602 commit f9d7383

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

exporters/otlp/src/otlp_http_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ OtlpHttpClient::createSession(
896896
// Parse uri and store it to cache
897897
if (http_uri_.empty())
898898
{
899-
const auto& parse_url = opentelemetry::ext::http::common::UrlParser(options_.url);
899+
const auto &parse_url = opentelemetry::ext::http::common::UrlParser(options_.url);
900900
if (!parse_url.success_)
901901
{
902902
std::string error_message = "[OTLP HTTP Client] Export failed, invalid url: " + options_.url;

ext/src/http/client/curl/http_client_curl.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33

44
#include <curl/curl.h>
55
#include <curl/curlver.h>
6+
#include <algorithm>
67
#include <array>
78
#include <atomic>
89
#include <chrono>
9-
#include <cstddef>
1010
#include <cstdint>
11+
#include <cstring>
1112
#include <list>
1213
#include <mutex>
1314
#include <string>
1415
#include <thread>
16+
#include <type_traits>
1517
#include <unordered_map>
1618
#include <unordered_set>
1719
#include <utility>
@@ -63,7 +65,7 @@ int deflateInPlace(z_stream *strm, unsigned char *buf, uint32_t len, uint32_t *m
6365
{
6466
// must be large enough to hold zlib or gzip header (if any) and one more byte -- 11 works for the
6567
// worst case here, but if gzip encoding is used and a deflateSetHeader() call is inserted in this
66-
// code after the deflateReset(), then the 11 needs to be increased to accomodate the resulting
68+
// code after the deflateReset(), then the 11 needs to be increased to accommodate the resulting
6769
// gzip header size plus one
6870
std::array<unsigned char, 11> temp{};
6971

@@ -134,7 +136,7 @@ void Session::SendRequest(
134136
std::shared_ptr<opentelemetry::ext::http::client::EventHandler> callback) noexcept
135137
{
136138
is_session_active_.store(true, std::memory_order_release);
137-
const auto& url = host_ + http_request_->uri_;
139+
const auto &url = host_ + http_request_->uri_;
138140
auto callback_ptr = callback.get();
139141
bool reuse_connection = false;
140142

0 commit comments

Comments
 (0)
0