diff --git a/sparse/src/KokkosSparse_StaticCrsGraph.hpp b/sparse/src/KokkosSparse_StaticCrsGraph.hpp index 02629e204f..7330f36e27 100644 --- a/sparse/src/KokkosSparse_StaticCrsGraph.hpp +++ b/sparse/src/KokkosSparse_StaticCrsGraph.hpp @@ -21,7 +21,9 @@ #ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4 +#define KOKKOS_IMPL_DO_NOT_WARN_INCLUDE_STATIC_CRS_GRAPH #include +#undef KOKKOS_IMPL_DO_NOT_WARN_INCLUDE_STATIC_CRS_GRAPH namespace KokkosSparse { using Kokkos::create_staticcrsgraph;