Tobias Burnus wrote:
Committed as Rev. 211766. See PR comments 10, 23 and 24 for the patch and the background. Thanks to Manuel and Dominque for the patch!
And as follow up, I have committed the attached documentation patch. I think it is sufficient, even though it does not explicitly state that -Wall only works because -Wall implies -Wunused.
Committed as Rev. 211767. Tobias
Index: gcc/fortran/ChangeLog =================================================================== --- gcc/fortran/ChangeLog (Revision 211766) +++ gcc/fortran/ChangeLog (Arbeitskopie) @@ -1,3 +1,9 @@ +2014-06-18 Tobias Burnus <bur...@net-b.de> + + PR fortran/61126 + * invoke.texi (-Wunused-parameter): Make clearer when + -Wextra implies this option. + 2014-06-18 Manuel López-Ibáñez <m...@gcc.gnu.org> PR fortran/61126 Index: gcc/fortran/invoke.texi =================================================================== --- gcc/fortran/invoke.texi (Revision 211766) +++ gcc/fortran/invoke.texi (Arbeitskopie) @@ -911,7 +911,8 @@ Contrary to @command{gcc}'s meaning of @option{-Wu @command{gfortran}'s implementation of this option does not warn about unused dummy arguments (see @option{-Wunused-dummy-argument}), but about unused @code{PARAMETER} values. @option{-Wunused-parameter} -is not included in @option{-Wall} but is implied by @option{-Wall -Wextra}. +is implied by @option{-Wextra} if also @option{-Wunused} or +@option{-Wall} is used. @item -Walign-commons @opindex @code{Walign-commons}