This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pointer <-> integer conversion warnings (bogus -Wall warnings)
From: Fergus Henderson <fjh@cs.mu.OZ.AU>
I just want to say that I too found these warnings extremely useful when
porting Mercury and CLP(R) to a 64-bit target (dec-alpha-osf*).
Being able to generate such warnings is certainly useful. I'll ask for
them if I want them.
For decades, however, the meaning of an explicit cast for a dangerous
conversion that would be performed by default has been "Don't issue
warnings for this.". That interpretation has given us a way to write
programs that use dangerous conversions carefully and compile cleanly.
If I want `lint', I know where to find it and how to write an up-to-date
version.
-t