https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61126
--- Comment #21 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > > -Wunused-parameter is enabled by -Wall. > > No, according to the manual it isn't. The gfortran manual reads: -Wunused-parameter Contrary to gcc's meaning of -Wunused-parameter, gfortran's implementation of this option does not warn about unused dummy arguments (see -Wunused-dummy-argument), but about unused PARAMETER values. -Wunused-parameter is not included in -Wall but is implied by -Wall -Wextra. This should probably be changed if -Wunused-parameter is implied by -Wextra. Note that if -Wextra can be used alone without implying -Wall, it is yet another poor choice for the -W naming (starting with -Wall which is not all warnings at all).