This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/61126] [4.10 Regression] gfortran does not enable -Wununused-parameter with -Wextra


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]