https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90467

            Bug ID: 90467
           Summary: Documentation: many warning options that are enabled
                    by default are documented in the -Woption form, not
                    -Wno-option
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gennaro.prota+gccbugzilla at gmail dot com
  Target Milestone: ---

From the manual (emphasis mine):

  Each of these specific warning options also has a negative form
  beginning ‘-Wno-’ to turn off warnings; for example, -Wno-implicit.
  This manual lists only one of the two forms, *whichever is not the
  default*.

However, several warning options that are enabled by default are documented in
the positive form, e.g. -Wif-not-aligned.

Should I try to provide a list of such options? Or the issue just isn't worth
it?

Reply via email to