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.
-Wshorten-64-to-32 was never supposed to be more than a portability
warning, which is why I didn't warn about double->float in clang's
implementation. Note that -Wshorten-64-to-32 is implied by -Wconversion.
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.
Well, let us know if you have any problems with false positives.
Am I looking in the wrong place for warning docs? I don't see -
Wconversion here:
Right now, we don't have any good documentation for the set of
warning categories we support.