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}; } };