[Bug fortran/52789] gfortran sets -Wunused-parameter in the C sense as well as the Fortran sense

mathewc at nag dot co.uk gcc-bugzilla@gcc.gnu.org
Mon Apr 2 08:03:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52789

--- Comment #4 from Mat Cross <mathewc at nag dot co.uk> 2012-04-02 08:03:22 UTC ---
(In reply to comment #3)
> Can you maybe check on trunk/4.7.0 ?

I've just tried with

$ gfortran --version
GNU Fortran (GCC) 4.7.1 20120331 (prerelease)

$ gfortran -c -Wunused-parameter unused.f90
unused.f90:2.23:

integer, parameter :: i = 0
                       1
Warning: Unused parameter 'i' declared at (1)
unused.f90:1:0: warning: unused parameter ‘x’ [-Wunused-parameter]

and

$ gfortran --version
GNU Fortran (GCC) 4.8.0 20120330 (experimental) [trunk revision 185988]

$ gfortran -c -Wunused-parameter unused.f90
unused.f90:2.23:

integer, parameter :: i = 0
                       1
Warning: Unused parameter 'i' declared at (1)
unused.f90:1:0: warning: unused parameter ‘x’ [-Wunused-parameter]



More information about the Gcc-bugs mailing list