Source code

Revision control

Copy as Markdown

Other Tools

From: Michael Froman <mfroman@mozilla.com>
Date: Thu, 5 Dec 2024 13:45:00 -0600
Subject: Bug 1934695 - (fix-3fa21c89c0) fix upstream compile issue in
apm_data_dumper.h
It is unclear why upstream modified a single DumpRaw call differently than
all the others, but it doesn't build for us. We'll fix it the same they
fixed all the other calls using [[maybe_unused]] annotations.
---
modules/audio_processing/logging/apm_data_dumper.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/audio_processing/logging/apm_data_dumper.h b/modules/audio_processing/logging/apm_data_dumper.h
index 09d24bd034..d05b580b09 100644
--- a/modules/audio_processing/logging/apm_data_dumper.h
+++ b/modules/audio_processing/logging/apm_data_dumper.h
@@ -348,9 +348,9 @@ class ApmDataDumper {
#endif
}
- void DumpRaw(absl::string_view /* name */,
- rtc::ArrayView<const size_t> /* v */,
- int /* dump_set */ = kDefaultDumpSet) {
+ void DumpRaw([[maybe_unused]] absl::string_view name,
+ [[maybe_unused]] rtc::ArrayView<const size_t> v,
+ [[maybe_unused]] int dump_set = kDefaultDumpSet) {
#if WEBRTC_APM_DEBUG_DUMP == 1
if (dump_set_to_use_ && *dump_set_to_use_ != dump_set)
return;