-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: fix opentelemetry-cpp warning (#32624)
Fixes #32591 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# TODO: Remove once https://github.com/open-telemetry/opentelemetry-cpp/issues/2556 is merged | ||
|
||
--- a/api/include/opentelemetry/trace/span_context.h | ||
+++ b/api/include/opentelemetry/trace/span_context.h | ||
@@ -30,7 +30,7 @@ class SpanContext final | ||
SpanContext(bool sampled_flag, bool is_remote) noexcept | ||
: trace_id_(), | ||
span_id_(), | ||
- trace_flags_(trace::TraceFlags((uint8_t)sampled_flag)), | ||
+ trace_flags_(trace::TraceFlags(static_cast<uint8_t>(sampled_flag))), | ||
is_remote_(is_remote), | ||
trace_state_(TraceState::GetDefault()) | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters