gcc3 vs 176.gcc
dewar@gnat.com
dewar@gnat.com
Wed Jan 9 13:54:00 GMT 2002
<<I disagree. It is perfectly legitimate to issue warnings for code that
are legal ISO C but hopelessly bad style. It would be wild obfuscation to
declare a pointer of type T1 but only initialize it with references to
objects of type T2 in all possible control flows, other than in cases
where T1 is (const,volatile,etc) char* or void* and the aliasing rules
treat these as special already.
>>
Absolutely! Indeed warnings are typically all about code that is legal, but
bad style (you do not even need to put in hopelessly :-)
More information about the Gcc
mailing list