aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/DisableStupidWarnings.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-03 14:12:18 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-03 14:12:18 -0800
commitf933f69021438af1a42f8dff9451cde0dce2a460 (patch)
tree8bd81fc1fdc14e15a24e1f70a8388408c1c6936c /Eigen/src/Core/util/DisableStupidWarnings.h
parent5d82e47ef68d0293086227d4abe7a1c05d4f4fd8 (diff)
Added a few comments
Diffstat (limited to 'Eigen/src/Core/util/DisableStupidWarnings.h')
-rwxr-xr-xEigen/src/Core/util/DisableStupidWarnings.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h
index d325bc062..3ed931855 100755
--- a/Eigen/src/Core/util/DisableStupidWarnings.h
+++ b/Eigen/src/Core/util/DisableStupidWarnings.h
@@ -43,8 +43,11 @@
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
#elif defined __NVCC__
+ // Disable the "statement is unreachable" message
#pragma diag_suppress code_is_unreachable
+ // Disable the "dynamic initialization in unreachable code" message
#pragma diag_suppress initialization_not_reachable
+ // Disable the "calling a __host__ function from a __host__ __device__ function is not allowed" messages
#pragma diag_suppress 2651
#pragma diag_suppress 2653