aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/ReenableStupidWarnings.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-09 20:55:50 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-09 20:55:50 -0800
commit970751ece3fe101acbb64ebb4aa469a9b1d635e4 (patch)
tree3805b88aa3971fe0885a35498339ca6651b4d00b /Eigen/src/Core/util/ReenableStupidWarnings.h
parent6323851ea9bcadd0512350d69bdfb45680dc754c (diff)
Disabling the nvcc warnings in addition to the clang warnings when clang is used as a frontend for nvcc
Diffstat (limited to 'Eigen/src/Core/util/ReenableStupidWarnings.h')
-rw-r--r--Eigen/src/Core/util/ReenableStupidWarnings.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/ReenableStupidWarnings.h b/Eigen/src/Core/util/ReenableStupidWarnings.h
index ea88e226c..a23fab198 100644
--- a/Eigen/src/Core/util/ReenableStupidWarnings.h
+++ b/Eigen/src/Core/util/ReenableStupidWarnings.h
@@ -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.