This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: which -W option triggers unused variables warning?


On 6/12/07, Kamaraju S Kusumanchi <kamaraju@bluebottle.com> wrote:

Thanks for the reply. Any idea why this option is not documented in the manpage?

It is documented.


The manpage says:
      The gfortran command supports all the options supported by the
gcc command.  Only
      options specific to gfortran are documented here.

And then in the gcc manpage:
      -Wunused
          All the above -Wunused options combined.

          In order to get a warning about an unused function
parameter, you must either
          specify -Wextra -Wunused (note that -Wall implies
-Wunused), or separately
          specify -Wunused-parameter.

Also:
      Many options have long names starting with -f or with -W---for example,
      -fstrength-reduce, -Wformat and so on.  Most of these have both
positive and nega-
      tive forms; the negative form of -ffoo would be -fno-foo.  This
manual documents
      only one of these two forms, whichever one is not the default.


-- Pinski



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