diff options
author | 2023-05-16 10:32:54 +0000 | |
---|---|---|
committer | 2023-05-22 10:36:39 +0000 | |
commit | 78f3c72e8948087352788997a70854dee613352c (patch) | |
tree | 306db3c15bc4b7af149bcf3e07be533e50679b88 /runtime/string_builder_append.cc | |
parent | dc771261232c2ff702373f396a5a7fe586e2f0a6 (diff) |
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875
Test: mmm art
Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'runtime/string_builder_append.cc')
-rw-r--r-- | runtime/string_builder_append.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/string_builder_append.cc b/runtime/string_builder_append.cc index 0083b912a5..2071733a1e 100644 --- a/runtime/string_builder_append.cc +++ b/runtime/string_builder_append.cc @@ -492,7 +492,7 @@ inline void StringBuilderAppend::Builder::StoreData(ObjPtr<mirror::String> new_s } inline void StringBuilderAppend::Builder::operator()(ObjPtr<mirror::Object> obj, - size_t usable_size ATTRIBUTE_UNUSED) const { + [[maybe_unused]] size_t usable_size) const { ObjPtr<mirror::String> new_string = ObjPtr<mirror::String>::DownCast(obj); new_string->SetCount(length_with_flag_); if (mirror::String::IsCompressed(length_with_flag_)) { |