aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/ReenableStupidWarnings.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/util/ReenableStupidWarnings.h')
-rw-r--r--Eigen/src/Core/util/ReenableStupidWarnings.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/ReenableStupidWarnings.h b/Eigen/src/Core/util/ReenableStupidWarnings.h
index 5ddfbd4aa..a23fab198 100644
--- a/Eigen/src/Core/util/ReenableStupidWarnings.h
+++ b/Eigen/src/Core/util/ReenableStupidWarnings.h
@@ -9,6 +9,16 @@
#elif defined __clang__
#pragma clang diagnostic pop
#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.
+// #pragma diag_default code_is_unreachable
+// #pragma diag_default initialization_not_reachable
+// #pragma diag_default 2651
+// #pragma diag_default 2653
+ #endif
#endif
#endif // EIGEN_WARNINGS_DISABLED