From 7d868e248f22443d095d8fe0ebabf1fe0d95db2e Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 24 May 2023 22:28:42 +0100 Subject: Use C++17's [[maybe_unused]] attribute in ART Bug: 169680875 Test: mmm art Partial cherry-pick of 78f3c72e8948087352788997a70854dee613352c Merged-In: Ic0cc320891c42b07a2b5520a584d2b62052e7235 Change-Id: Ie15c66578d9a61e86125f4408b9e7d212258f9eb --- runtime/startup_completed_task.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/startup_completed_task.cc b/runtime/startup_completed_task.cc index 9358d48acc..a9a06bb0e1 100644 --- a/runtime/startup_completed_task.cc +++ b/runtime/startup_completed_task.cc @@ -82,7 +82,7 @@ void StartupCompletedTask::Run(Thread* self) { // - accessing the image space metadata section when we madvise it // - accessing dex caches when we free them static struct EmptyClosure : Closure { - void Run(Thread* thread ATTRIBUTE_UNUSED) override {} + void Run([[maybe_unused]] Thread* thread) override {} } closure; runtime->GetThreadList()->RunCheckpoint(&closure); -- cgit v1.2.3-59-g8ed1b