summaryrefslogtreecommitdiff
path: root/runtime/jni/local_reference_table.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/jni/local_reference_table.h
parentdc771261232c2ff702373f396a5a7fe586e2f0a6 (diff)
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'runtime/jni/local_reference_table.h')
-rw-r--r--runtime/jni/local_reference_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jni/local_reference_table.h b/runtime/jni/local_reference_table.h
index 900e4c3e12..22fa4a91df 100644
--- a/runtime/jni/local_reference_table.h
+++ b/runtime/jni/local_reference_table.h
@@ -333,7 +333,7 @@ class LocalReferenceTable {
void SetSegmentState(LRTSegmentState new_state);
- static Offset SegmentStateOffset(size_t pointer_size ATTRIBUTE_UNUSED) {
+ static Offset SegmentStateOffset([[maybe_unused]] size_t pointer_size) {
// Note: Currently segment_state_ is at offset 0. We're testing the expected value in
// jni_internal_test to make sure it stays correct. It is not OFFSETOF_MEMBER, as that
// is not pointer-size-safe.