From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586) If You use -Wunused option Compiler g77 warns if you have varibales in COMMON blocks and you don't use them in this subprogram. It is very iritated especially, if you declare COMMON blocks in including files. There were not this effect in previous version of EGCS (f77). Reproducible: Always Steps to Reproduce: 1.create the file common.fc which includes as follows real a common /AAA/ a 2. create fortran program (ie. test.for): program test include 'common.fc' real b b =5. write(*,*)' b = ',b stop end 3. Actual Results: warning: unused variable a Expected Results: no warning
Upgrade to 2.96-77 or above (like the compiler shipped in 7.1 distro).