From ed440cf2ab136038fd2c540b7a19c0eab20789be Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 16 Mar 2023 10:30:47 -0700 Subject: [PATCH] Clean warnings in ETW exporters --- exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h | 2 ++ .../etw/include/opentelemetry/exporters/etw/etw_tail_sampler.h | 1 + 2 files changed, 3 insertions(+) diff --git a/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h b/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h index caa4fe5133..ccf332b599 100644 --- a/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h +++ b/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h @@ -228,6 +228,8 @@ class Logger : public opentelemetry::logs::Logger opentelemetry::trace::TraceFlags trace_flags, common::SystemTimestamp timestamp) noexcept { + UNREFERENCED_PARAMETER(trace_flags); + # if defined(ENABLE_ENV_PROPERTIES) Properties env_properties_env = {}; diff --git a/exporters/etw/include/opentelemetry/exporters/etw/etw_tail_sampler.h b/exporters/etw/include/opentelemetry/exporters/etw/etw_tail_sampler.h index c7fa7ec0cf..bd4a9bb90e 100644 --- a/exporters/etw/include/opentelemetry/exporters/etw/etw_tail_sampler.h +++ b/exporters/etw/include/opentelemetry/exporters/etw/etw_tail_sampler.h @@ -30,6 +30,7 @@ class AlwaysOnTailSampler : public TailSampler opentelemetry::sdk::trace::SamplingResult ShouldSample( const opentelemetry::trace::Span &span) noexcept override { + UNREFERENCED_PARAMETER(span); return {opentelemetry::sdk::trace::Decision::RECORD_AND_SAMPLE}; } };