Red Hat Bugzilla – Bug 37195
Strange warning during Fortran files compiling
Last modified: 2007-04-18 12:32:47 EDT
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
There were not this effect in previous version of EGCS (f77).
Steps to Reproduce:
1.create the file common.fc which includes as follows
common /AAA/ a
2. create fortran program (ie. test.for):
write(*,*)' b = ',b
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).