[cfe-dev] 64 to 32 truncation warnings for ints and floats?

Sean McBride sean at rogue-research.com
Fri Nov 12 10:33:57 PST 2010


On Fri, 12 Nov 2010 10:25:38 -0800, John McCall said:

>The generic "warn about any implicit conversions that might lose precision"
>warning is -Wconversion.  Clang's implementation of that is similar to
>gcc-4.3's, i.e. substantially better than gcc-4.2's.

Ahh, that's good news.  I'm used to thinking of -Wconversion as useless,
since it is in Apple's gcc 4.2.

Am I looking in the wrong place for warning docs?  I don't see -
Wconversion here:

<http://clang.llvm.org/docs/UsersManual.html>

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada






More information about the cfe-dev mailing list