From 7937ac2bab3eaef32222e6b28c6d4dda9f5af6d9 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 24 May 2022 15:31:03 +0100 Subject: [PATCH] fix: conditional pragmas according to new NVCC_DIAG_PRAGMA_SUPPORT standard in pugixml/pugixml.cc --- Grid/pugixml/pugixml.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Grid/pugixml/pugixml.cc b/Grid/pugixml/pugixml.cc index 45e6496a..81973964 100644 --- a/Grid/pugixml/pugixml.cc +++ b/Grid/pugixml/pugixml.cc @@ -16,8 +16,12 @@ #ifdef __NVCC__ #pragma push +#if (__CUDACC_VER_MAJOR__ >= 11) && (__CUDACC_VER_MINOR__ >= 5) +#pragma nv_diag_suppress declared_but_not_referenced // suppress "function was declared but never referenced warning" +#else #pragma diag_suppress declared_but_not_referenced // suppress "function was declared but never referenced warning" #endif +#endif #include "pugixml.h"