fix unused-variable warning

This commit is contained in:
Konstantinos Margaritis 2024-01-17 17:02:08 +02:00
parent f8fdd979f1
commit ac02b589be

View File

@ -68,8 +68,10 @@ TEST(depth, ctor) {
} }
TEST(depth, convert_throw) { TEST(depth, convert_throw) {
ASSERT_THROW(u32 v = depth::infinity(), DepthOverflowError); u32 v;
ASSERT_THROW(u32 v = depth::unreachable(), DepthOverflowError); (void)v;
ASSERT_THROW(v = depth::infinity(), DepthOverflowError);
ASSERT_THROW(v = depth::unreachable(), DepthOverflowError);
} }
TEST(depth, is_finite) { TEST(depth, is_finite) {