Re: [eigen] compile with gcc-4.8.0-ptr warnings |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] compile with gcc-4.8.0-ptr warnings
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Thu, 22 Mar 2012 00:22:49 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=8jRzQT+b722w7CCxwxl7PwESZwtozb9qMPx/rhezHDw=; b=XzyDRkn8W31aLw2CKniPuOjUYKQ+45dX80rIJuFmmCKzZfi3jc/m03ZDuDB6/ccc7R O5A2B7GGnwmRzjw280kJ/2xgqbRx1jYiAyS3SIJ2ok/LhGFZuO7Qy3Mn0o3x76VNt+Ja L+U7FXLGcGWdXD9ciPImfYdZHEqhFUUH1pTI8rtHEXG5PsD/GrDcCSCdpRfGYV9TDySY sXPoaYcaAd01zHyLiVFzkUBXlQkk8zXeGJbFeQ2dLO/RcJyUXdJqnEwcU1O4PaOMtlWT 20rxFkV+0pIsiGXY29NTsGcqLXqXDk5t+o4PQBcNbIACCl3boJZolmkkvP5Mf3uvf+a/ 923w==
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.
>
>