This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: assign numbers to warnings; treat selected warnings as errors
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Thomas Koenig <tkoenig at alice-dsl dot net>
- Cc: Vivek Rao <vivekrao4 at yahoo dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 20 Apr 2007 11:40:52 +0000 (UTC)
- Subject: Re: assign numbers to warnings; treat selected warnings as errors
- References: <183786.62412.qm@web53404.mail.re2.yahoo.com> <1177065350.32273.3.camel@meiner.onlinehome.de>
On Fri, 20 Apr 2007, Thomas Koenig wrote:
> This does sound like a useful feature, not only for
> gfortran, but for all of gcc.
GCC has -Werror=foo in 4.2 or later (with warning option names, not
numbers). That gives you the command-line syntax and semantics; to use it
in gfortran, you'd need either to use the common diagnostics
infrastructure or add the feature to the Fortran-specific diagnostics
code.
--
Joseph S. Myers
joseph@codesourcery.com