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] gfortran does not enable -Wununused-parameter with -Wextra


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.


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