fix missing return warning for repeat and axpby (#1124)

This commit is contained in:
reed 2023-10-12 12:05:45 +08:00 committed by GitHub
parent 112590114d
commit fa8dfe631f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ axpby(Alpha const& alpha,
else {
return beta == Int<0>{};
}
CUTE_GCC_UNREACHABLE;
} ();
CUTE_UNROLL

View File

@ -743,6 +743,8 @@ repeat(X const& x)
} else {
return detail::construct(0, x, seq<>{}, make_seq<N>{}, seq<>{});
}
CUTE_GCC_UNREACHABLE;
}
//