Fix bug #507: Mark variable as unused in NDEBUG case

This commit is contained in:
Christoph Hertzberg 2012-12-20 11:21:47 +01:00
parent 45ae9a069c
commit 27f6fd3a50

View File

@ -543,6 +543,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