This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61126] [4.10 Regression] gfortran does not enable -Wununused-parameter with -Wextra
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 May 2014 09:24:53 +0000
- Subject: [Bug fortran/61126] [4.10 Regression] gfortran does not enable -Wununused-parameter with -Wextra
- Auto-submitted: auto-generated
- References: <bug-61126-4 at http dot gcc dot gnu dot org/bugzilla/>
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.