mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Suppress NVCC warnings in pugixml with pragma
This commit is contained in:
parent
47c063f984
commit
d92a17f359
@ -14,6 +14,11 @@
|
||||
#ifndef SOURCE_PUGIXML_CPP
|
||||
#define SOURCE_PUGIXML_CPP
|
||||
|
||||
#ifdef __NVCC__
|
||||
#pragma push
|
||||
#pragma diag_suppress declared_but_not_referenced // suppress "function was declared but never referenced warning"
|
||||
#endif
|
||||
|
||||
#include "pugixml.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -12768,6 +12773,10 @@ namespace pugi
|
||||
#undef PUGI__THROW_ERROR
|
||||
#undef PUGI__CHECK_ERROR
|
||||
|
||||
#ifdef GRID_NVCC
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user