suppress compilation warnings (#2195)

This commit is contained in:
reed
2025-04-10 14:48:01 -04:00
committed by GitHub
parent dd76dec4ef
commit 5120b21cc3
5 changed files with 23 additions and 1 deletions
+11 -1
View File
@@ -834,6 +834,8 @@ coalesce_x(Layout<Shape,Stride> const& layout)
} else {
return detail::bw_coalesce<R-2>(flat_shape, flat_stride, get<R-1>(flat_shape), get<R-1>(flat_stride));
}
CUTE_GCC_UNREACHABLE;
}
// Apply coalesce_x at the terminals of trg_profile
@@ -903,6 +905,8 @@ coalesce(Shape const& shape)
} else {
return append(init, a); // Can't coalesce, so append
}
CUTE_GCC_UNREACHABLE;
});
}
@@ -1105,6 +1109,8 @@ composition_impl(LShape const& lhs_shape, LStride const& lhs_stride,
rest_shape / new_shape,
next_stride);
}
CUTE_GCC_UNREACHABLE;
});
if constexpr (tuple_size<decltype(result_shape)>::value == 0) {
@@ -1289,6 +1295,8 @@ right_inverse(Layout<Shape,Stride> const& layout)
} else {
return init;
}
CUTE_GCC_UNREACHABLE;
});
return coalesce(make_layout(result_shape, result_stride));
@@ -1344,6 +1352,8 @@ left_inverse(Layout<Shape,Stride> const& layout)
return make_tuple(append(result_shape, istride / size(result_shape)),
append(result_stride, get<i>(preprod_shape)));
}
CUTE_GCC_UNREACHABLE;
});
return coalesce(make_layout(append(result_shape, get<back(sorted_seq)>(lshape)),
@@ -1499,7 +1509,7 @@ nullspace(Layout<Shape,Stride> const& layout)
{
auto flat_layout = flatten(layout);
auto iseq = detail::nullspace_seq<0>(flat_layout.stride(), seq<>{});
[[maybe_unused]] auto iseq = detail::nullspace_seq<0>(flat_layout.stride(), seq<>{});
if constexpr (iseq.size() == 0) {
return Layout<_1,_0>{}; // Empty case, nothing found