base: Remove warnings in base/task/common/task_annotator.cc

This commit is contained in:
klzgrad 2023-01-11 17:10:10 +08:00
parent 69464f03be
commit 99e2216813

View File

@ -315,6 +315,8 @@ TaskAnnotator::LongTaskTracker::~LongTaskTracker() {
TRACE_EVENT_END("scheduler.long_tasks", TRACE_EVENT_END("scheduler.long_tasks",
perfetto::Track::ThreadScoped(task_annotator_), perfetto::Track::ThreadScoped(task_annotator_),
task_end_time); task_end_time);
std::ignore = pending_task_;
std::ignore = task_annotator_;
} }
#if !BUILDFLAG(ENABLE_BASE_TRACING) #if !BUILDFLAG(ENABLE_BASE_TRACING)
// Suppress the unused variable warning when TRACE_EVENT macros are turned // Suppress the unused variable warning when TRACE_EVENT macros are turned