Disabling the nvcc warnings in addition to the clang warnings when clang is used as a frontend for nvcc

This commit is contained in:
Benoit Steiner
2016-02-09 20:55:50 -08:00
parent 6323851ea9
commit 970751ece3
2 changed files with 5 additions and 2 deletions

View File

@@ -8,7 +8,9 @@
#pragma warning pop
#elif defined __clang__
#pragma clang diagnostic pop
#elif defined __NVCC__
#endif
#if defined __NVCC__
// Don't reenable the diagnostic messages, as it turns out these messages need
// to be disabled at the point of the template instantiation (i.e the user code)
// otherwise they'll be triggeredby nvcc.