This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61126] gfortran does not enable -Wununused-parameter with -Wextra
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 May 2014 15:51:04 +0000
- Subject: [Bug fortran/61126] 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/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61126
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Florian Weimer from comment #3)
> (In reply to Matthias Klose from comment #2)
> > -Wunused-parameter is enabled by -Wall. I'm surprised that -Wextra is used
> > without -Wall, but it happens in the testsuite in more places.
Actually, looking at gcc/common.opt, one finds:
Wunused-parameter
Common Var(warn_unused_parameter) Warning EnabledBy(Wunused && Wextra)
Thus, in GCC - whether Fortran or C - it is enabled with -Wextra, but only if
also -Wunused is used. The latter is implied by -Wall.