From f933f69021438af1a42f8dff9451cde0dce2a460 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 3 Feb 2016 14:12:18 -0800 Subject: [PATCH] Added a few comments --- Eigen/src/Core/util/DisableStupidWarnings.h | 3 +++ 1 file changed, 3 insertions(+) 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