On Fri, Feb 28, 2014 at 1:26 AM, Tobias Grosser <[email protected]> wrote:

> I would have thought that the difference is that a remark indicates
>> something that *isn't* a problem, and is just informational. That being
>> the
>> case, it doesn't make sense to me to upgrade remarks to warnings or to
>> errors. It would seem bizarre to me if -Werror converts remarks to errors
>> (and indeed, in this patch, it does not).
>>
>
> Good point. I explicitly mentioned that '-Werror' does not trigger on
> remarks in the commit message.
>
>
> > I think we should also reject
>
>> -Werror=some-remark.
>>
>
> Several people mentioned that they like this feature including Chris. This
> either needs more discussion or just more experience when some
> remarks have been added.


I actually really agree with Richard here. If these were things that made
sense to "escalate" they would be warnings. I think a good metric for
whether something should be a warning or a remark is whether it really ever
makes sense to break the compilation on it because it indicates a problem.

I also think that it is ultimately a mistake to re-use the same commandline
syntax for remarks. While I'd rather re-use all the infrastructure, I'd
rather separate these into a different spelling eventually.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to