diff --git a/src/details/ArborX_DetailsLegacy.hpp b/src/details/ArborX_DetailsLegacy.hpp index d63ade2ab..29d84e669 100644 --- a/src/details/ArborX_DetailsLegacy.hpp +++ b/src/details/ArborX_DetailsLegacy.hpp @@ -52,6 +52,12 @@ class LegacyValues expand(bounding_volume, Access::get(_primitives, i)); return value_type{bounding_volume, (index_type)i}; } +#if (defined(KOKKOS_COMPILER_NVCC) && (KOKKOS_COMPILER_NVCC < 1150)) || \ + (defined(KOKKOS_COMPILER_INTEL) && (KOKKOS_COMPILER_INTEL <= 2021)) + // FIXME_NVCC, FIXME_INTEL: workaround for spurios "missing return + // statement at end of non-void function" warning + return value_type{}; +#endif } KOKKOS_FUNCTION