-Wunused-variable broken on trunk?

Janus Weil janus@gcc.gnu.org
Sun Sep 7 18:40:00 GMT 2008


Hi all,

with recent trunk builds of gfortran I don't get any warnings about
unused variables any more.
Here's an extremely minimalistic test case:

integer :: i
end

Compiling this two-liner with gfortran 4.3 (using any one of -Wall,
-Wunused or -Wunused-variable) gives

Warning: Unused variable 'i' declared at (1)

On trunk, however, this warning is absent. It seems to be a
Fortran-specific problem, since unused variables in C code are
reported as expected.

Should I file a PR, or is there some obvious reason for this behaviour
which I'm missing?

Cheers,
Janus



More information about the Fortran mailing list