diff options
author | 2023-05-16 10:32:54 +0000 | |
---|---|---|
committer | 2023-05-22 10:36:39 +0000 | |
commit | 78f3c72e8948087352788997a70854dee613352c (patch) | |
tree | 306db3c15bc4b7af149bcf3e07be533e50679b88 /libartbase/base/allocator.cc | |
parent | dc771261232c2ff702373f396a5a7fe586e2f0a6 (diff) |
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875
Test: mmm art
Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'libartbase/base/allocator.cc')
-rw-r--r-- | libartbase/base/allocator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libartbase/base/allocator.cc b/libartbase/base/allocator.cc index 6393672859..71a4f6cce4 100644 --- a/libartbase/base/allocator.cc +++ b/libartbase/base/allocator.cc @@ -49,12 +49,12 @@ class NoopAllocator final : public Allocator { NoopAllocator() {} ~NoopAllocator() {} - void* Alloc(size_t size ATTRIBUTE_UNUSED) override { + void* Alloc([[maybe_unused]] size_t size) override { LOG(FATAL) << "NoopAllocator::Alloc should not be called"; UNREACHABLE(); } - void Free(void* p ATTRIBUTE_UNUSED) override { + void Free([[maybe_unused]] void* p) override { // Noop. } |