From: Timo Heister Date: Sun, 11 Aug 2024 17:21:58 +0000 (-0400) Subject: Kokkos+CUDA: disable warning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17465%2Fhead;p=dealii.git Kokkos+CUDA: disable warning nvcc decides that it should produce a warning about a missing return in a situation like this: ``` { if (check) return true; else return false; } ``` Disable this warning. --- diff --git a/cmake/modules/FindDEAL_II_KOKKOS.cmake b/cmake/modules/FindDEAL_II_KOKKOS.cmake index c0958d4a34..142edccc3b 100644 --- a/cmake/modules/FindDEAL_II_KOKKOS.cmake +++ b/cmake/modules/FindDEAL_II_KOKKOS.cmake @@ -77,5 +77,7 @@ if(Kokkos_FOUND) 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") + # warning #940-D: missing return statement at end of non-void function + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=940") endif() endif()