From 8d1e4fbdce2e872c911baa4de1da8bdd941aff7d Mon Sep 17 00:00:00 2001 From: Johannes Kron Date: Tue, 10 May 2022 15:05:28 +0200 Subject: [PATCH] Mark trace-only variable as unused to fix build errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tracing can be disabled by setting the build flag rtc_disable_trace_events = true This causes the variable to be unused. Bug: webrtc:12787 Change-Id: Iebbb8cbb5ede5453ad24ce7710de3b1dd68ad83f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/261683 Reviewed-by: Henrik Boström Commit-Queue: Markus Handell Reviewed-by: Markus Handell Cr-Commit-Position: refs/heads/main@{#36843} --- pc/proxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc/proxy.h b/pc/proxy.h index 2c347d6249..5b164929b7 100644 --- a/pc/proxy.h +++ b/pc/proxy.h @@ -94,7 +94,7 @@ class ScopedTrace { ~ScopedTrace(); private: - const char* const class_and_method_name_; + [[maybe_unused]] const char* const class_and_method_name_; }; } // namespace proxy_internal