From 36ff88baf3a8f6e9d746117b609266f859269143 Mon Sep 17 00:00:00 2001 From: shahramn Date: Mon, 25 Mar 2024 15:23:48 +0000 Subject: [PATCH] CMake: NVIDIA compiler warnings --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a32bde1..d1267c63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,6 +227,9 @@ else() ecbuild_add_cxx_flags("-Wno-unused-variable" NO_FAIL) ecbuild_add_cxx_flags("-Wno-reorder" NO_FAIL) ecbuild_add_cxx_flags("-Wno-sign-compare" NO_FAIL) + # For NVIDIA + ecbuild_add_cxx_flags("--diag_suppress=partial_override" NO_FAIL) + ecbuild_add_cxx_flags("--diag_suppress=virtual_function_decl_hidden" NO_FAIL) # set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-reorder-ctor -Wno-sign-compare")