Skip to content

Commit 28cbacb

Browse files
authored
fix stride compilation warning (#1415)
1 parent 8f7d278 commit 28cbacb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/cute/stride.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ compact_order(Shape const& shape, Order const& order)
436436
} else {
437437
return v;
438438
}
439+
440+
CUTE_GCC_UNREACHABLE;
439441
});
440442
// Replace any dynamic elements within order with large-static elements
441443
auto max_seq = make_range<max_order+1, max_order+1+rank(flat_order)>{};
@@ -445,6 +447,8 @@ compact_order(Shape const& shape, Order const& order)
445447
} else {
446448
return seq_v;
447449
}
450+
451+
CUTE_GCC_UNREACHABLE;
448452
});
449453

450454
auto new_order = unflatten(ref_order, order);

0 commit comments

Comments
 (0)