On 17/02/2013 21:46, Jonathan M Davis wrote:
<snip>
Hmm, that brings up a different (though minor) issue: If it's a
warning, why does it say "Error"?

Probably because -w turns warnings into errors. That's its whole schtick.

No, the whole schtick of -w is that it causes warnings to be emitted at all. It's a quirk of the way it was designed that it treats them as errors - by returning a failure status code, not by the wording of the compiler output.

But it's clearly a bug that this particular warning message has the label "Error:" instead of "Warning:".

http://d.puremagic.com/issues/show_bug.cgi?id=952

Unless it really is meant to be an error, in which case it's a bug that it is emitted only if -w is used.

However, -wi also appears to say "Error," which definitely isn't correct.

-wi versus -w shouldn't make any difference to the wording of error messages. Only to the status code returned by the compiler if there were any warnings.

Stewart.

Reply via email to