Bug 507 - Annoying warnings with EIGEN_NO_AUTOMATIC_RESIZING and gcc 4.6.3
: Annoying warnings with EIGEN_NO_AUTOMATIC_RESIZING and gcc 4.6.3
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: Core - general
: 3.1
: All Linux
: Lowest minor
Assigned To: Desire NUENTSA
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-09-04 22:16 UTC by Felipe
Modified: 2012-12-20 11:29 UTC (History)
3 users (show)



Attachments
compiler output (4.50 KB, text/plain)
2012-09-04 22:16 UTC, Felipe
no flags Details

Description Felipe 2012-09-04 22:16:52 UTC
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
Comment 1 Desire NUENTSA 2012-09-10 10:29:56 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.