Skip to content

Commit

Permalink
Update EDG diag suppress to fix the Intel Compiler Classic
Browse files Browse the repository at this point in the history
and provide a fallback empty definition for the macros
  • Loading branch information
dalg24 committed May 9, 2024
1 parent 466234c commit 1321dc4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/src/Kokkos_Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@ static constexpr bool kokkos_omp_on_host() { return false; }
// clang-format off
#if defined(__EDG__)
#define KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_PUSH() \
_Pragma("push") \
_Pragma("diag_suppress 1223")
_Pragma("warning push") \
_Pragma("warning disable 1478")
#define KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_POP() \
_Pragma("pop")
_Pragma("warning pop")
#elif defined(__GNUC__) || defined(__clang__)
#define KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_PUSH() \
_Pragma("GCC diagnostic push") \
Expand All @@ -581,6 +581,9 @@ static constexpr bool kokkos_omp_on_host() { return false; }
_Pragma("warning(disable: 4996)")
#define KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_POP() \
_Pragma("warning(pop)")
#else
#define KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_PUSH()
#define KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_POP()
#endif
// clang-format on

Expand Down

0 comments on commit 1321dc4

Please sign in to comment.