Re: [eigen] warnings in gcc 4.7 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] warnings in gcc 4.7
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Fri, 16 Mar 2012 08:12:35 +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=e5ZMfZAL0G7ncBLVW6yRb1NouFxh77zmWu8WuFWmdGc=; b=ZVbIfnKBXIhxAbGSJ8BB32h5NugOLwXUq1kjZAC95bELsCfW9Tn06mVXUOUeEdI1+B 49J0+iJSLeDKjIhqwqy23LuoEG83nYb2ojoaXQRmrUlfWpWiV8EaxtHLXrVnGBchK66K bptKmobnOKyQ2V1p5bMIBSdz5cnPxSV8A4obLyw59ANFKrXKGQwxmjVowGanJP6e333b 8kUgBrbzi2dZax8cNTEuWjq+XmySj1zSBsvZU0xS4KNuyUearyPmsa75cvx45c35vIcE TqplX3FDkZlYPJG3Sqk/V4ycTdUPGeRYoOzVSdTN4+qnttR7yRK6p41z+fkmAIbPjIh2 XRvg==
Hi,
In my opinion this precise one is a gcc issue, however it seems to
have been recently fixed. Here this warning disappeared with a recent
update of gcc 4.7.
So are you sure you have the very last version of 4.7.0?
cheers,
gael
On Fri, Mar 16, 2012 at 6:56 AM, Christophe Prud'homme
<christophe.prudhomme@xxxxxxxxxxxxxxx> wrote:
> All,
>
> GCC 4.7 generates tons of warnings on eigen like this one
>
> 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::Diagonal<const
> Eigen::Matrix<double, 1, 1, 0, 1, 1>, 0> >::<anonymous enum>' [enabled by
> default]
>
> it seems this option -Wenum-compare generates it which is enabled by
> default in c++
>
> any idea if eigen3 needs to be fixed or is it gcc ?
>
> Best regards
> C.
> --
> Christophe Prud'homme
> Université de Grenoble christophe.prudhomme@xxxxxxxxxxxxxxx
> LJK - Room 55 Tel: +33476635497
> 51, rue des Mathématiques Fax: +33476631263
> BP53 38041 Grenoble Cedex 9
> <http://ljk.imag.fr/membres/Christophe.Prudhomme/>
>