Skip to content

Commit

Permalink
fix missing return warning for repeat and axpby (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
reed-lau authored and ttl10101 committed Feb 7, 2024
1 parent 4cc2d8e commit 535fc09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/cute/algorithm/axpby.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ axpby(Alpha const& alpha,
else {
return beta == Int<0>{};
}

CUTE_GCC_UNREACHABLE;
} ();

CUTE_UNROLL
Expand Down
2 changes: 2 additions & 0 deletions include/cute/algorithm/tuple_algorithms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ repeat(X const& x)
} else {
return detail::construct(0, x, seq<>{}, make_seq<N>{}, seq<>{});
}

CUTE_GCC_UNREACHABLE;
}

//
Expand Down

0 comments on commit 535fc09

Please sign in to comment.