diff --git a/src/base/task/common/task_annotator.cc b/src/base/task/common/task_annotator.cc index 2783848202..e638939b36 100644 --- a/src/base/task/common/task_annotator.cc +++ b/src/base/task/common/task_annotator.cc @@ -312,6 +312,8 @@ TaskAnnotator::LongTaskTracker::~LongTaskTracker() { TRACE_EVENT_END("scheduler.long_tasks", perfetto::Track::ThreadScoped(task_annotator_), task_end_time); + std::ignore = pending_task_; + std::ignore = task_annotator_; } }