From 5b5e60a713e6ee2ac23f4a7475a5b0ecc67605fc Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 6 Aug 2024 15:41:30 -0400 Subject: [PATCH] Merge pull request #17424 from tjhei/kokkos-nvcc-ignore-cast-qual silence a Kokkos+CUDA warning --- cmake/modules/FindDEAL_II_KOKKOS.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmake/modules/FindDEAL_II_KOKKOS.cmake b/cmake/modules/FindDEAL_II_KOKKOS.cmake index 40ac11261a..c0958d4a34 100644 --- a/cmake/modules/FindDEAL_II_KOKKOS.cmake +++ b/cmake/modules/FindDEAL_II_KOKKOS.cmake @@ -65,15 +65,17 @@ if(Kokkos_FOUND) # # integer conversion resulted in a change of sign: enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=68") - # variable "i" was set but never used: - enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=550") # loop is not reachable: enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=128") - # warning #186-D: pointless comparison of unsigned integer with zero - enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=186") # warning #177-D: variable "n_max_face_orientations" was declared but never referenced enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=177") + # warning #186-D: pointless comparison of unsigned integer with zero + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=186") + # warning #191-D: type qualifier is meaningless on cast type + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=191") # warning #284-D: NULL reference is not allowed enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=284") + # variable "i" was set but never used: + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=550") endif() endif() -- 2.39.5