From 27f6fd3a50fce97be58c355c38b0ae73fa10caee Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Thu, 20 Dec 2012 11:21:47 +0100 Subject: [PATCH] Fix bug #507: Mark variable as unused in NDEBUG case --- Eigen/src/Core/PlainObjectBase.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index f4460a84d..ca2444588 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -543,6 +543,7 @@ class PlainObjectBase : public internal::dense_xpr_base::type eigen_assert((this->size()==0 || (IsVectorAtCompileTime ? (this->size() == other.size()) : (rows() == other.rows() && cols() == other.cols()))) && "Size mismatch. Automatic resizing is disabled because EIGEN_NO_AUTOMATIC_RESIZING is defined"); + EIGEN_ONLY_USED_FOR_DEBUG(other); #else resizeLike(other); #endif