suppress compilation warnings (#2195)
This commit is contained in:
@ -151,6 +151,8 @@ getv(ESO<F, R, T, Rest...> const& s)
|
||||
} else {
|
||||
return getv<N-1>(s.rest_);
|
||||
}
|
||||
|
||||
CUTE_GCC_UNREACHABLE;
|
||||
}
|
||||
|
||||
template <size_t N, bool F, bool R, class T, class... Rest>
|
||||
@ -164,6 +166,8 @@ getv(ESO<F, R, T, Rest...>& s)
|
||||
} else {
|
||||
return getv<N-1>(s.rest_);
|
||||
}
|
||||
|
||||
CUTE_GCC_UNREACHABLE;
|
||||
}
|
||||
|
||||
template <size_t N, bool F, bool R, class T, class... Rest>
|
||||
@ -177,6 +181,8 @@ getv(ESO<F, R, T, Rest...>&& s)
|
||||
} else {
|
||||
return getv<N-1>(static_cast<ESO_t<Rest...>&&>(s.rest_));
|
||||
}
|
||||
|
||||
CUTE_GCC_UNREACHABLE;
|
||||
}
|
||||
|
||||
template <class X, size_t N,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -84,6 +84,8 @@ as_arithmetic_tuple(T const& t) {
|
||||
} else {
|
||||
return t;
|
||||
}
|
||||
|
||||
CUTE_GCC_UNREACHABLE;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@ -381,6 +381,8 @@ struct MakeTensor
|
||||
return Tensor<Engine,Layout>();
|
||||
}
|
||||
}
|
||||
|
||||
CUTE_GCC_UNREACHABLE;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -417,6 +417,8 @@ struct maximum {
|
||||
else {
|
||||
return (lhs < rhs ? rhs : lhs);
|
||||
}
|
||||
|
||||
CUTE_GCC_UNREACHABLE;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user