Skip to content

Commit

Permalink
Fix -Werror with intel/19
Browse files Browse the repository at this point in the history
Mark "alignment" variable as [[maybe_unused]] in get_shmem_common
  • Loading branch information
ndellingwood authored and crtrott committed Jan 6, 2023
1 parent 4954ce2 commit edfb1e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/Kokkos_ScratchSpace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ class ScratchMemorySpace {

private:
template <bool alignment_requested, typename IntType>
KOKKOS_INLINE_FUNCTION void* get_shmem_common(const IntType& size,
const ptrdiff_t alignment,
int level = -1) const {
KOKKOS_INLINE_FUNCTION void* get_shmem_common(
const IntType& size, [[maybe_unused]] const ptrdiff_t alignment,
int level = -1) const {
if (level == -1) level = m_default_level;
auto& m_iter = (level == 0) ? m_iter_L0 : m_iter_L1;
auto& m_end = (level == 0) ? m_end_L0 : m_end_L1;
Expand Down

0 comments on commit edfb1e3

Please sign in to comment.