From 05dda3f83223180b54fb7203da42d8dccba9f406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 4 Jun 2023 15:19:41 +0200 Subject: [PATCH] DebugTools: minor coverage fix. Looks like the switch cases are handled differently now, I'm pretty sure the original way worked before. --- src/Magnum/DebugTools/CompareImage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Magnum/DebugTools/CompareImage.cpp b/src/Magnum/DebugTools/CompareImage.cpp index e8b29074f..fa7965284 100644 --- a/src/Magnum/DebugTools/CompareImage.cpp +++ b/src/Magnum/DebugTools/CompareImage.cpp @@ -367,11 +367,13 @@ void printPixelAt(Debug& out, const Containers::StridedArrayView3D& out << *reinterpret_cast(pixel); break; + /* LCOV_EXCL_START */ case PixelFormat::Depth16UnormStencil8UI: case PixelFormat::Depth24UnormStencil8UI: case PixelFormat::Depth32FStencil8UI: /* Already handled by a printing assert before */ - CORRADE_INTERNAL_ASSERT_UNREACHABLE(); /* LCOV_EXCL_LINE */ + CORRADE_INTERNAL_ASSERT_UNREACHABLE(); + /* LCOV_EXCL_STOP */ } #ifdef CORRADE_TARGET_GCC #pragma GCC diagnostic pop