diff options
author | 2023-05-16 10:32:54 +0000 | |
---|---|---|
committer | 2023-05-22 10:36:39 +0000 | |
commit | 78f3c72e8948087352788997a70854dee613352c (patch) | |
tree | 306db3c15bc4b7af149bcf3e07be533e50679b88 /runtime/art_method-inl.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/art_method-inl.h')
-rw-r--r-- | runtime/art_method-inl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/art_method-inl.h b/runtime/art_method-inl.h index 3ea5130162..7353b149ac 100644 --- a/runtime/art_method-inl.h +++ b/runtime/art_method-inl.h @@ -52,7 +52,7 @@ namespace detail { template <> struct ShortyTraits<'V'> { using Type = void; - static Type Get(const JValue& value ATTRIBUTE_UNUSED) {} + static Type Get([[maybe_unused]] const JValue& value) {} // `kVRegCount` and `Set()` are not defined. }; @@ -152,8 +152,8 @@ constexpr size_t NumberOfVRegs() { } template <char... ArgType> -inline ALWAYS_INLINE void FillVRegs(uint32_t* vregs ATTRIBUTE_UNUSED, - typename ShortyTraits<ArgType>::Type... args ATTRIBUTE_UNUSED) +inline ALWAYS_INLINE void FillVRegs([[maybe_unused]] uint32_t* vregs, + [[maybe_unused]] typename ShortyTraits<ArgType>::Type... args) REQUIRES_SHARED(Locks::mutator_lock_) {} template <char FirstArgType, char... ArgType> |