This is the mail archive of the
mailing list for the GCC project.
Re: RFC: should we use -Werror? (& sample patch to do it)
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Subject: Re: RFC: should we use -Werror? (& sample patch to do it)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 27 Sep 2001 01:04:07 +0100 (BST)
- cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, <gcc at gcc dot gnu dot org>
On Thu, 27 Sep 2001, Fergus Henderson wrote:
> Yes, please. I've been wanting that for years.
> The counter-argument is that inhibiting all warnings for a whole statement
> or a whole expression is dangerous, because it might inhibit warnings that
> indicate real problems. However, what I end up doing to work-around the
> absence of __nowarn__ is inhibiting certain categories of warnings for my
> whole application, simply because one header file contains an occurrence
> of code which triggers such a warning and for which the warning can't
> easily be supressed.
We should also look at the previous discussion of designs for fine-grained
warning control (e.g. see http://gcc.gnu.org/ml/gcc/2000-06/msg00639.html
- linked to from projects/beginner.html but currently missing from the web
server as one of the 4492 files needed from the old disk listed in
Joseph S. Myers