Re: [eigen] "May be used uninitialized" warning...

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


Indeed, valgrind doesn't report any error, so the warning is wrong. (I
indeed get the warning)

OK to initialize if that can be done without a significant perf
overhead in this particular case.

Benoit

2010/12/10 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
> Ah you also need to enable optimization to get the warning. Actually
> it is easy to prove that the warning is wrong, so let's just
> initialize the variable to 0 to get rid of it.
>
> gael
>
> On Fri, Dec 10, 2010 at 10:34 AM, Jose Luis Blanco
> <joseluisblancoc@xxxxxxxxx> wrote:
>> I attach a proper test case that shows the warning.
>> Tested in gcc 4.4, 32bit, with today's hg eigen. I obtained the same
>> also with gcc 4.5, 64bit.
>>
>> JL
>>
>>
>> On 12/10/2010 08:29 AM, Gael Guennebaud wrote:
>>> I cannot reproduce. Tested  with gcc 4.5, 4.4, 4.3, and  4.1
>>>
>>> gael
>>>
>>
>
>
>



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