This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |