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.

Reply via email to