diff options
author | 2023-05-16 10:32:54 +0000 | |
---|---|---|
committer | 2023-05-22 10:36:39 +0000 | |
commit | 78f3c72e8948087352788997a70854dee613352c (patch) | |
tree | 306db3c15bc4b7af149bcf3e07be533e50679b88 /runtime/gc/allocator/rosalloc.h | |
parent | dc771261232c2ff702373f396a5a7fe586e2f0a6 (diff) |
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875
Test: mmm art
Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
-rw-r--r-- | runtime/gc/allocator/rosalloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h index 9a09c88927..bb2f426aef 100644 --- a/runtime/gc/allocator/rosalloc.h +++ b/runtime/gc/allocator/rosalloc.h @@ -303,7 +303,7 @@ class RosAlloc { // The number of slots in the list. This is used to make it fast to check if a free list is all // free without traversing the whole free list. uint32_t size_; - uint32_t padding_ ATTRIBUTE_UNUSED; + [[maybe_unused]] uint32_t padding_; friend class RosAlloc; }; @@ -354,7 +354,7 @@ class RosAlloc { uint8_t is_thread_local_; // True if this run is used as a thread-local run. bool to_be_bulk_freed_; // Used within BulkFree() to flag a run that's involved with // a bulk free. - uint32_t padding_ ATTRIBUTE_UNUSED; + [[maybe_unused]] uint32_t padding_; // Use a tailless free list for free_list_ so that the alloc fast path does not manage the tail. SlotFreeList<false> free_list_; SlotFreeList<true> bulk_free_list_; |