Re: [eigen] compile with gcc-4.8.0-ptr warnings

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I guess you meant gcc 4.7.0, anyway this warning has been reported
many times on the forum and in this list a few days ago. In my opinion
this warning is a gcc mistake because all the returned values are all
part of the current enum set, so there cannot be any mismatch. This
should be reported to gcc. Any volunteer? In the meantime I
worked-around by casting them to int.

cheers,
Gael.

On Wed, Mar 21, 2012 at 6:18 PM, Helmut Jarausch
<jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I've just tried to compile a source code with  Eigen-git-2012-03-15 by using
> gcc-4.8.0 (snapshot from 2012/03/18
>
> I get lots of warnings, e.g.
> In file included from /usr/local/include/Eigen/Eigen/Core:283:0,
>                 from Eigen_Ortho.C:6:
> /usr/local/include/Eigen/Eigen/src/Core/DenseBase.h: In instantiation of
> 'class Eigen::DenseBase<Eigen::Matrix<double, -1, -1> >':
> /usr/local/include/Eigen/Eigen/src/Core/MatrixBase.h:61:34:   required from
> 'class Eigen::MatrixBase<Eigen::Matrix<double, -1, -1> >'
> /usr/local/include/Eigen/Eigen/src/Core/PlainObjectBase.h:85:7:   required
> from 'class Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1> >'
> /usr/local/include/Eigen/Eigen/src/Core/Matrix.h:140:7:   required from
> 'class Eigen::Matrix<double, -1, -1>'
> Eigen_Ortho.C:10:17:   required from here
> /usr/local/include/Eigen/Eigen/src/Core/DenseBase.h:103:10: warning:
> enumeral mismatch in conditional expression:
> 'Eigen::internal::size_at_compile_time<-1, -1>::<anonymous enum>' vs
> 'Eigen::internal::traits<Eigen::Matrix<double, -1, -1> >::<anonymous enum>'
> [enabled by default]
>
>
> What can I do about this (it fills many screens)?
>
> Many thanks for a hint,
> Helmut.
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/