summaryrefslogtreecommitdiff
path: root/test/util/image.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/image.test.cpp')
-rw-r--r--test/util/image.test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/util/image.test.cpp b/test/util/image.test.cpp
index a7114e65ec..07dc534aa5 100644
--- a/test/util/image.test.cpp
+++ b/test/util/image.test.cpp
@@ -124,8 +124,9 @@ TEST(Image, Move) { // NOLINT
auto moved = std::move(rgba);
- EXPECT_EQ(0u, rgba.size.width);
- EXPECT_EQ(nullptr, rgba.data.get());
+ // warning: 'rgba' used after it was moved [misc-use-after-move]
+ EXPECT_EQ(0u, rgba.size.width); // NOLINT
+ EXPECT_EQ(nullptr, rgba.data.get()); // NOLINT
EXPECT_EQ(254, moved.data[1]);
EXPECT_EQ(1u, moved.size.width);
}