On 20/04/07, Joseph S. Myers <[EMAIL PROTECTED]> wrote:
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.
Not only that, but you can do -Werror -Wno-error=foo, to get errors
for everything except -Wfoo. Also, you can do
-fdiagnostics-show-options to find out which -Wfoo option generates
each warning message. It is unfortunate that this is missing from
gcc-4.2/changes.html.
Cheers,
Manuel.