diff options
Diffstat (limited to 'libdexfile/dex/utf.cc')
-rw-r--r-- | libdexfile/dex/utf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdexfile/dex/utf.cc b/libdexfile/dex/utf.cc index 9692a26827..bcda8ca5bf 100644 --- a/libdexfile/dex/utf.cc +++ b/libdexfile/dex/utf.cc @@ -209,7 +209,7 @@ int CompareModifiedUtf8ToUtf16AsCodePointValues(const char* utf8, const uint16_t size_t CountModifiedUtf8BytesInUtf16(const uint16_t* chars, size_t char_count) { // FIXME: We should not emit 4-byte sequences. Bug: 192935764 size_t result = 0; - auto append = [&](char c ATTRIBUTE_UNUSED) { ++result; }; + auto append = [&]([[maybe_unused]] char c) { ++result; }; ConvertUtf16ToUtf8</*kUseShortZero=*/ false, /*kUse4ByteSequence=*/ true, /*kReplaceBadSurrogates=*/ false>(chars, char_count, append); |