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 0fe264869a
commit b7ea59556d

View File

@ -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