diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2023-05-24 22:28:42 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2023-05-24 22:28:42 +0100 |
commit | 7d868e248f22443d095d8fe0ebabf1fe0d95db2e (patch) | |
tree | e57e679513923c3bf199c97488852d764fe25654 | |
parent | f34513630c38f485454d93b6f6c5c86aed117b44 (diff) | |
download | art-7d868e248f22443d095d8fe0ebabf1fe0d95db2e.tar.gz |
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
-rw-r--r-- | runtime/startup_completed_task.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |