[Bug fortran/61126] [4.10 Regression] gfortran does not enable -Wununused-parameter with -Wextra
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Tue May 20 09:25:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61126
--- Comment #23 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Adding -Wall to the dg-options let the test succeed (in line with the gfortran
manual, see comment 21):
--- ../_clean/gcc/testsuite/gfortran.dg/wextra_1.f 2012-10-21
13:06:18.000000000 +0200
+++ gcc/testsuite/gfortran.dg/wextra_1.f 2014-05-15 12:05:56.000000000 +0200
@@ -1,5 +1,5 @@
! { dg-do compile }
-! { dg-options "-Wextra" }
+! { dg-options "-Wall -Wextra" }
program main
integer, parameter :: x=3 ! { dg-warning "Unused parameter" }
real :: a
Indeed the questions asked in comment 22 should be answered.
More information about the Gcc-bugs
mailing list