This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: G77 warnings as errors
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Phil Klunzinger <phil at wavefun dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 22 May 2002 22:08:03 +0200
- Subject: Re: G77 warnings as errors
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3CEBCA19.4090006@wavefun.com>
Phil Klunzinger wrote:
> For example, on my machine: "g77 -c foo.f" will fail, not just spew
> out the appropriate warning.
>
> -- begin foo.f --
> subroutine foo(N,A,ii)
> integer N,ii(N),iptr
> real*8 A(N)
>
> call c_bzero(ii,N*4)
> call c_bzero(A ,N*8)
> iptr = memDgrab(N*N)
> call c_bzero(%val(iptr), N*N*8)
>
> return
> end
> --- end foo.f ---
I do not understand that. g77-3.0.3 generates the .o file in spite of
the warning messages; g77-2.95.2 does so too.
The warnings can be surpressed (if you so choose) by using the flag
-Wno-globals.
Hope this helps (all of this is documented, see
http://gcc.gnu.org/onlinedocs/gcc-3.1/g77/GLOBALS.html#GLOBALS)
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)