18 lines
698 B
Diff
18 lines
698 B
Diff
diff --git base/task/common/task_annotator.cc base/task/common/task_annotator.cc
|
|
index 27838482024e1..41d0ea21d9431 100644
|
|
--- base/task/common/task_annotator.cc
|
|
+++ base/task/common/task_annotator.cc
|
|
@@ -313,6 +313,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,
|