cef/patch/patches/base_task_4015625.patch
2022-11-17 12:50:15 -05:00

18 lines
698 B
Diff

diff --git base/task/common/task_annotator.cc base/task/common/task_annotator.cc
index 289d1d1f1bd88..b9ed6e32fdc44 100644
--- base/task/common/task_annotator.cc
+++ base/task/common/task_annotator.cc
@@ -292,6 +292,12 @@ TaskAnnotator::LongTaskTracker::~LongTaskTracker() {
perfetto::Track::ThreadScoped(task_annotator_),
task_end_time);
}
+#if !BUILDFLAG(ENABLE_BASE_TRACING)
+ // Suppress the unused variable warning when TRACE_EVENT macros are turned
+ // into no-op.
+ (void)pending_task_;
+ (void)task_annotator_;
+#endif // !BUILDFLAG(ENABLE_BASE_TRACING)
}
void TaskAnnotator::LongTaskTracker::SetIpcDetails(const char* interface_name,