mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 01:26:03 +01:00
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 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,
|