From 28cbacbf646e1dfaeb7a01591fb62c529efa9d86 Mon Sep 17 00:00:00 2001 From: reed Date: Sat, 30 Mar 2024 11:50:33 +0800 Subject: [PATCH] fix stride compilation warning (#1415) --- include/cute/stride.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cute/stride.hpp b/include/cute/stride.hpp index 92020048..3b44bb20 100644 --- a/include/cute/stride.hpp +++ b/include/cute/stride.hpp @@ -436,6 +436,8 @@ compact_order(Shape const& shape, Order const& order) } else { return v; } + + CUTE_GCC_UNREACHABLE; }); // Replace any dynamic elements within order with large-static elements auto max_seq = make_range{}; @@ -445,6 +447,8 @@ compact_order(Shape const& shape, Order const& order) } else { return seq_v; } + + CUTE_GCC_UNREACHABLE; }); auto new_order = unflatten(ref_order, order);