From 2b2b4d0580dd9a46790b16909aec607b18dd7b9e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 3 Oct 2018 14:16:21 +0200 Subject: [PATCH] fix unused warning --- Eigen/src/Core/util/IntegralConstant.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/IntegralConstant.h b/Eigen/src/Core/util/IntegralConstant.h index bf99cd8ab..caeea232d 100644 --- a/Eigen/src/Core/util/IntegralConstant.h +++ b/Eigen/src/Core/util/IntegralConstant.h @@ -55,7 +55,9 @@ public: operator int() const { return value; } FixedInt() {} FixedInt( VariableAndFixedInt other) { - EIGEN_ONLY_USED_FOR_DEBUG(other); + #ifndef EIGEN_INTERNAL_DEBUGGING + EIGEN_UNUSED_VARIABLE(other); + #endif eigen_internal_assert(int(other)==N); }