[PATCH/fortran] Add option to make 1st error fatal

Paul Brook paul@codesourcery.com
Mon Oct 31 16:54:00 GMT 2005


On Monday 31 October 2005 04:38, Steve Kargl wrote:
> On Sun, Oct 30, 2005 at 11:29:45PM -0500, Andrew Pinski wrote:
>
> I wrote:
> > > I have not idea what you mean.  If I use "gfortran -Werror"
> > > with my patch, gfortran will exit when it hits the first
> > > warning.  That appears to be fairly fatal.
> >
> > I am trying to say that the behavior with -Werror on gcc,
> > is that it turns warnings into errors and does not make
> > them a fatal error.
>
> What's the point?  So, gcc prints "Error: " instead of
> "Warning: ".

Not even that. It just controls whether compilation is considered to be 
successful after a warning has been issues.

The only user-visible difference in the C frontend is that it prints
"cc1: warnings being treated as errors", and the process returns nonzero if 
any warnings are issued.

Paul



More information about the Fortran mailing list