From 2046f4165853c27a93cc52348a56db1bd6ca6fba Mon Sep 17 00:00:00 2001 From: Nathan Ellingwood Date: Tue, 27 Aug 2024 17:40:26 -0600 Subject: [PATCH] Fix bogus icpc -Werror Workaround error #1011: missing return statement at end of non-void function --- containers/src/Kokkos_DualView.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/containers/src/Kokkos_DualView.hpp b/containers/src/Kokkos_DualView.hpp index d644386a110..a6a206c4c46 100644 --- a/containers/src/Kokkos_DualView.hpp +++ b/containers/src/Kokkos_DualView.hpp @@ -441,6 +441,9 @@ class DualView : public ViewTraits { } } } +#ifdef KOKKOS_COMPILER_INTEL + __builtin_unreachable(); +#endif } KOKKOS_INLINE_FUNCTION