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]

Re: G77 warnings as errors


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]