From 99e2216813075a586ce43141bcf1d2af9550ae0c Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 11 Jan 2023 17:10:10 +0800 Subject: [PATCH] base: Remove warnings in base/task/common/task_annotator.cc --- src/base/task/common/task_annotator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/task/common/task_annotator.cc b/src/base/task/common/task_annotator.cc index 9821fd29fb..2fc65cd67b 100644 --- a/src/base/task/common/task_annotator.cc +++ b/src/base/task/common/task_annotator.cc @@ -315,6 +315,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_; } #if !BUILDFLAG(ENABLE_BASE_TRACING) // Suppress the unused variable warning when TRACE_EVENT macros are turned