]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Kokkos+CUDA: disable warning 17465/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 11 Aug 2024 17:21:58 +0000 (13:21 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 11 Aug 2024 17:21:58 +0000 (13:21 -0400)
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.

cmake/modules/FindDEAL_II_KOKKOS.cmake

index c0958d4a3412254940f248a3809311f13aeddb2c..142edccc3b566aff615e96f3945186c16c32ef94 100644 (file)
@@ -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()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.