Mail Archives: djgpp-workers/2002/05/27/21:21:48
According to CBFalconer:
> To me a warning is just that. It says "I know just how to handle
> this, but it is unusual and did you really mean it?". While, as
What unusual about ``sprintf(s, "")´´? It a perfectly legal way to
initialize s to an empty string.
> you say, auto generated code can include such empty format
> strings, I can think of no reason for human generated code to do
> so, when it is most likely a typo.
No. Why shouldn't I use the above command if I did want to do the
above?
> If the compiler has to do error recovery to continue, and possibly
> suppress statements as a result, it is an error.
Ööööh... And what are you trying to say with that sentence. What has
that to do with the useless warning?
> There could well be an argument for a way of suppressing this
> particular (and other) warnings, but that does not make it
> superfluous. Similarly I want a warning for nested comments, for
> just one further example.
Sure. I can imaging some people might want it. So let them add
"-Wcomplain-uselessyly-about-legal-code" or whatever.
> Just in case there is any doubt, I approve :-)
I approve as well.
Of not useless warnings.
Right,
MartinS
- Raw text -