diff --git a/libcudacxx/test/libcudacxx/std/containers/views/mdspan/submdspan/strided_slice.pass.cpp b/libcudacxx/test/libcudacxx/std/containers/views/mdspan/submdspan/strided_slice.pass.cpp index 5fd0dce906b..c1da6f6cb41 100644 --- a/libcudacxx/test/libcudacxx/std/containers/views/mdspan/submdspan/strided_slice.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/containers/views/mdspan/submdspan/strided_slice.pass.cpp @@ -48,6 +48,7 @@ __host__ __device__ constexpr T construct_from_int(int val) noexcept { if constexpr (cuda::std::__integral_constant_like) { + (void) val; return T{}; } else