This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30929] -pedantic-error produced only warnings and no errors
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2007 23:33:40 -0000
- Subject: [Bug fortran/30929] -pedantic-error produced only warnings and no errors
- References: <bug-30929-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2007-02-27 23:33 -------
> The same is true for -Werror.
I have to correct myself:
-Werror gives a non-zero exit status, but still writes "Warning:". I think
gfortran should follow gcc by changing also the label from "Warning:" to
"Error:" for -Werror.
-pedantic-errors seems to be difficult as it is hard to divide -Wall warnings
from -pedantic warnings. The easiest way is probably to imply -Wall by
-pedantic_errors (defined in flags.h as flag_pedantic_errors).
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-pedantic-error produced |-pedantic-error produced
|only warnings and no errors |only warnings and no errors
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30929