Skip to content

Commit

Permalink
kokkos#6805: add maybe_unused to indices for checking padding on conv…
Browse files Browse the repository at this point in the history
…ersion from mdspan
  • Loading branch information
nmm0 committed May 15, 2024
1 parent 673adfe commit 53efc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/View/MDSpan/Kokkos_MDSpan_Layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ KOKKOS_INLINE_FUNCTION auto array_layout_from_mapping(
std::is_same_v<
typename mapping_type::layout_type,
Experimental::layout_right_padded<dynamic_extent>>)) {
constexpr size_t strided_index =
[[maybe_unused]] constexpr size_t strided_index =
std::is_same_v<typename mapping_type::layout_type,
Experimental::layout_left_padded<dynamic_extent>>
? 1
: rank - 2;
constexpr size_t extent_index =
[[maybe_unused]] constexpr size_t extent_index =
std::is_same_v<typename mapping_type::layout_type,
Experimental::layout_left_padded<dynamic_extent>>
? 0
Expand Down

0 comments on commit 53efc51

Please sign in to comment.