pointer <-> integer conversion warnings (bogus -Wall warnings)
Tom Lord
lord@emf.net
Wed Mar 13 23:09:00 GMT 2002
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
More information about the Gcc
mailing list