Re: [eigen] Feeback to Rev #914777. (pre RC1) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Feeback to Rev #914777. (pre RC1)
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 22 Jan 2009 01:09:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=kA5bbSpbbUXdPheGJzEze1cuuqv47XPZG4TLnmWkjoI=; b=iXjL/ol7tw2e2ngNCOSIjECYvHvYPjrSYkfTArv1aQZ/QLA+rV8+FeIVQ/+JG5hbuM VZbClS4hCIsBRaj5Ud50sTEgfkFSb1dMy+osfKd+LwPpDarFL+fSGbGJhPMvNp9e35kx Ga5e9Lm0tnXGop/pwxMKmKl9/wTEThR81a9ek=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ozvwawqP+xlc1kjX9sy1gpdSP38Kq0kVdhDT24HkENtYXU1ZHzuHL+Et/w028eifcv h96KOP5WLp5Ms14ZXB2qdrEjA0mQ/6k3Lv/tV44XKOYcbsgu6QRZAQugpJYBwiGjpScF G6/VSql+zyUGNbBFyNH6lp8VwH7xO4Ld4Jto4=
2009/1/21 FMDSPAM <fmdspam@xxxxxxxxx>:
> Hi,
>
> here are some more of type b):
>
> Warning 224 warning C4244: 'argument' : conversion from 'double' to
> 'const float', possible loss of data FILE c:\Develop\Eigen\test\lu.cpp
> LINE 39
> FILE c:\Develop\Eigen\test\lu.cpp LINE 45
>
> And at the same time at the same places:
> Warning 226 warning C4244: 'argument' : conversion from 'double' to
> 'const std::complex<float>::_Ty', possible loss of data FILE
> c:\Develop\Eigen\test\lu.cpp LINE 39
> FILE c:\Develop\Eigen\test\lu.cpp LINE 45
These were valid complaints, fixed.
>
> Warning 231 warning C4244: 'argument' : conversion from 'int' to
> 'const std::complex<float>::_Ty', possible loss of data FILE
> c:\Develop\Eigen\test\submatrices.cpp LINE 143, 144, 146, 147
> FILE c:\Develop\Eigen\test\sum.cpp LINE 37
This one is abusive, MSVC doesn't want me to construct a
complex<float> from an int even explicitly.
Still, other warnings of this type have been useful, so i made a workaround.
>
> Warning 237 warning C4700: uninitialized local variable 'dummy' used
> FILE c:\develop\eigen\eigen\src\core\arch\sse\packetmath.h LINE 67
sounds valid -- except it has no importance in practice since it's
after an abortion.
i make a workaround.
>
> Warning 239 warning C4181: qualifier applied to reference type;
> ignored FILE c:\Develop\Eigen\test\meta.cpp LINE 48, 50
aha, this is a good catch. we wrote const Ref with Ref=T&, and we
meant const T& i.e. the const applied to T, but that's not what we
got.
I remove these 2 lines, I think they're just redundant.
> By the way: Many times warning "C4003: not enough actual parameters for macro 'throw'" occurs.
OK, this was caused by a workaround for GCC so not needed for MSVC
anyway. Solved with a #ifdef.
All that's in r914899.
Wow, that's a nice amount of actual issues found thanks to your testing!
Cheers,
Benoit