This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: On 'unused parameter' warnings
On Sun, Jul 29, 2007 at 08:49:05AM +0200, Angelo Graziosi wrote:
>
>
> On Sat, 28 Jul 2007, Steve Kargl wrote:
>
> > On Sun, Jul 29, 2007 at 01:16:49AM +0200, Angelo Graziosi wrote:
> > >
> > > With recent GFortran, building old F77 (Cernlib applications) code, one
> > > gets a lot of "'unused parameter' warnings".
> > >
> > > Is there an option to suppress those warnings (that are very annoying)?
> > >
> >
> > You have a few options: 1) fix the code.
>
>
> Do you know CERNLIB (http://cernlib.web.cern.ch/cernlib)?
I do not know CERNLIB, but would seem to be poorly written
code if a large number of warnings are issued.
> > 2) use -w.
>
> Where this option is documented ?
>
info gfortran
The `gfortran' command supports all the options supported by the `gcc'
command. Only options specific to GNU Fortran are documented here.
info gcc
`-w'
Inhibit all warning messages.
--
Steve