diff options
author | 2023-05-16 10:32:54 +0000 | |
---|---|---|
committer | 2023-05-22 10:36:39 +0000 | |
commit | 78f3c72e8948087352788997a70854dee613352c (patch) | |
tree | 306db3c15bc4b7af149bcf3e07be533e50679b88 /compiler/linker | |
parent | dc771261232c2ff702373f396a5a7fe586e2f0a6 (diff) |
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875
Test: mmm art
Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'compiler/linker')
-rw-r--r-- | compiler/linker/output_stream_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/linker/output_stream_test.cc b/compiler/linker/output_stream_test.cc index 22b174fce6..6b62874643 100644 --- a/compiler/linker/output_stream_test.cc +++ b/compiler/linker/output_stream_test.cc @@ -107,13 +107,13 @@ TEST_F(OutputStreamTest, BufferedFlush) { flush_called(false) { } ~CheckingOutputStream() override {} - bool WriteFully(const void* buffer ATTRIBUTE_UNUSED, - size_t byte_count ATTRIBUTE_UNUSED) override { + bool WriteFully([[maybe_unused]] const void* buffer, + [[maybe_unused]] size_t byte_count) override { LOG(FATAL) << "UNREACHABLE"; UNREACHABLE(); } - off_t Seek(off_t offset ATTRIBUTE_UNUSED, Whence whence ATTRIBUTE_UNUSED) override { + off_t Seek([[maybe_unused]] off_t offset, [[maybe_unused]] Whence whence) override { LOG(FATAL) << "UNREACHABLE"; UNREACHABLE(); } |