Created attachment 293 [details] compiler output in this simple program: // test.cpp #define EIGEN_NO_AUTOMATIC_RESIZING #define EIGEN_NO_DEBUG #include <Eigen/Core> int main() { Eigen::MatrixXd Aloc = Eigen::MatrixXd::Zero(3, 3); } // end file compiled with g++ -Wall -Wextra test.cpp -I$EIGEN_DIR -o test one shows some annoying/weird warnings, see attached file. os: Ubuntu gcc 4.6.3 eigen 3.1.1
The warning is just about unused variable other which should be used during assertions. Assertions are not called when EIGEN_NO_DEBUG or NDEBUG flags are defined.
Fixed in https://bitbucket.org/eigen/eigen/commits/cfb77c400b266d955bbbe600474b335537f10a87 https://bitbucket.org/eigen/eigen/commits/0dc5b5877628bf57766162b3550738f6fc535209 https://bitbucket.org/eigen/eigen/commits/eb267f3ada0ece50849e9f9e505e66af47eef3c6 Fix Bug 507: Mark variable as unused in NDEBUG case
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/507.