summaryrefslogtreecommitdiff
path: root/runtime/mirror/array.h
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2023-05-16 10:32:54 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2023-05-22 10:36:39 +0000
commit78f3c72e8948087352788997a70854dee613352c (patch)
tree306db3c15bc4b7af149bcf3e07be533e50679b88 /runtime/mirror/array.h
parentdc771261232c2ff702373f396a5a7fe586e2f0a6 (diff)
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'runtime/mirror/array.h')
-rw-r--r--runtime/mirror/array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h
index 5d64167566..e7cfb92bdc 100644
--- a/runtime/mirror/array.h
+++ b/runtime/mirror/array.h
@@ -140,10 +140,10 @@ class MANAGED Array : public Object {
// The number of array elements.
// We only use the field indirectly using the LengthOffset() method.
- int32_t length_ ATTRIBUTE_UNUSED;
+ [[maybe_unused]] int32_t length_;
// Marker for the data (used by generated code)
// We only use the field indirectly using the DataOffset() method.
- uint32_t first_element_[0] ATTRIBUTE_UNUSED;
+ [[maybe_unused]] uint32_t first_element_[0];
DISALLOW_IMPLICIT_CONSTRUCTORS(Array);
};