This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: should we use -Werror? (& sample patch to do it)
- To: Loic dot Joly at renault dot com, dann at godzilla dot ICS dot UCI dot EDU
- Subject: Re: RFC: should we use -Werror? (& sample patch to do it)
- From: dewar at gnat dot com
- Date: Thu, 6 Sep 2001 12:15:57 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
<<Well, the control is not that fine grained, even for warnings, since is
is not possible to disable a warning locally, but only for a full
translation unit.
>>
In GNAT, we have a pragma Warnings (On|Off) which can be applied locally
and is very useful for eliminating "OK" warnings (in GNAT we require
compilation with -gnatwe which is the equivalent of -Werror.