Skip to content

Commit

Permalink
Fix uninitialize variable warning with gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Aug 28, 2023
1 parent e1f9739 commit 7c2631c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/unit_tests/TestStdAlgorithmsTeamFindEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void test_A(const bool sequencesExist, std::size_t numTeams,
auto rowSearchedSeq =
Kokkos::subview(searchedSequencesView_h, i, Kokkos::ALL());

std::size_t stdDistance;
std::size_t stdDistance = std::numeric_limits<std::size_t>::max();
const std::size_t beginEndDistance = KE::distance(rowFromBegin, rowFromEnd);

switch (apiId) {
Expand Down

0 comments on commit 7c2631c

Please sign in to comment.