diff options
Diffstat (limited to 'AK/Tests/TestByteBuffer.cpp')
-rw-r--r-- | AK/Tests/TestByteBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Tests/TestByteBuffer.cpp b/AK/Tests/TestByteBuffer.cpp index b813829cb5..fd99141677 100644 --- a/AK/Tests/TestByteBuffer.cpp +++ b/AK/Tests/TestByteBuffer.cpp @@ -65,7 +65,7 @@ TEST_CASE(negative_operator_lt) { ByteBuffer a = ByteBuffer::copy("Hello, world", 10); ByteBuffer b = ByteBuffer::copy("Hello, friend", 10); - (void)(a < b); + [[maybe_unused]] auto res = a < b; // error: error: use of deleted function ‘bool AK::ByteBuffer::operator<(const AK::ByteBuffer&) const’ } #endif /* COMPILE_NEGATIVE_TESTS */ |