From fa8dfe631f71fc000df93241209ef0a07164d1fb Mon Sep 17 00:00:00 2001 From: reed Date: Thu, 12 Oct 2023 12:05:45 +0800 Subject: [PATCH] fix missing return warning for repeat and axpby (#1124) --- include/cute/algorithm/axpby.hpp | 2 ++ include/cute/algorithm/tuple_algorithms.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/cute/algorithm/axpby.hpp b/include/cute/algorithm/axpby.hpp index a01fb1df..b1a9cdb9 100644 --- a/include/cute/algorithm/axpby.hpp +++ b/include/cute/algorithm/axpby.hpp @@ -75,6 +75,8 @@ axpby(Alpha const& alpha, else { return beta == Int<0>{}; } + + CUTE_GCC_UNREACHABLE; } (); CUTE_UNROLL diff --git a/include/cute/algorithm/tuple_algorithms.hpp b/include/cute/algorithm/tuple_algorithms.hpp index 4eeebf8b..2cd8706b 100644 --- a/include/cute/algorithm/tuple_algorithms.hpp +++ b/include/cute/algorithm/tuple_algorithms.hpp @@ -743,6 +743,8 @@ repeat(X const& x) } else { return detail::construct(0, x, seq<>{}, make_seq{}, seq<>{}); } + + CUTE_GCC_UNREACHABLE; } //