Bug 37195 - Strange warning during Fortran files compiling
Strange warning during Fortran files compiling
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-04-23 09:37 EDT by Need Real Name
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-23 09:37:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-04-23 09:37:36 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).

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

Actual Results:  warning: unused variable a

Expected Results:  no warning
Comment 1 Jakub Jelinek 2001-04-24 12:21:44 EDT
Upgrade to 2.96-77 or above (like the compiler shipped in 7.1 distro).

Note You need to log in before you can comment on or make changes to this bug.