pointer <-> integer round-up
Robert Dewar
dewar@gnat.com
Thu Mar 21 18:40:00 GMT 2002
<<I would agree with Alan if the rule were stated in a somewhat weaker way:
if there is a warning that is included in -Wall, for any program that
produces a warning, it should be possible to modify the program to
eliminate the warning without making the program significantly worse in
performance or size. An example of a warning that doesn't meet that
criterion are the "effective C++" warnings that insist that some classes
have a virtual destructor when this is unnecessary, which adds unnecessary
time and space overhead to programs.
>>
Just to be clear, I absolutely agree with the above.
The issue is whether there has to be *portable* way to guarantee no warnings
on *any* target. I don't see that as necessary for warnings that are of the
kind that may vary from one target to another.
More information about the Gcc
mailing list