aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/PlainObjectBase.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2012-12-20 11:21:47 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2012-12-20 11:21:47 +0100
commitb7ea59556dbf9c73b05638a041cff1c37b664d90 (patch)
tree13db67f7745114f64b229805973922c5390fd1a5 /Eigen/src/Core/PlainObjectBase.h
parent0fe264869a24bbdafce14eeb6d46f0ab0399fb0f (diff)
Fix bug #507: Mark variable as unused in NDEBUG case
Diffstat (limited to 'Eigen/src/Core/PlainObjectBase.h')
-rw-r--r--Eigen/src/Core/PlainObjectBase.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h
index bef79d3d7..5c94ef621 100644
--- a/Eigen/src/Core/PlainObjectBase.h
+++ b/Eigen/src/Core/PlainObjectBase.h
@@ -564,6 +564,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::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