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.

Reply via email to