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

            Bug ID: 124935
           Summary: [doc][diagnostics] undocumented warnings for -Wextra
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: heiko at hexco dot de
  Target Milestone: ---

While scanning trunk (16.0 at commit eaeb0b2033b42df7163d06e0323f205953e9ccdf)
for all uses of the -Wextra option I found these, which seem to be
undocumented.

gcc manual chapter 3.9 -Wextra:

c/c-typeck.cc line 15052
                warning_at (location, OPT_Wextra,
                            "ordered comparison of pointer with null pointer");
(I would like to treat this together with the entry
"A pointer is compared against integer zero with <, <=, >, or >=.")

cp/call.cc line 14335
      warning (OPT_Wextra, "a temporary bound to %qD only persists "
               "until the constructor exits", decl);

expmed.cc line 672
      warning (OPT_Wextra, "write of %wu-bit data outside the bound of "
               "destination object, data truncated into %wu-bit",
               bitsize, unit - bitnum);

target avr gcc manual chapter 3.20.6 -Wextra:
config/avr/avr.cc line 16405
          warning (OPT_Wextra, "rounding to %d bits has no effect for "
                   "fixed-point value with %d fractional bits",
                   rbit, GET_MODE_FBIT (mode));

I hope it is ok to bundle all finds for the gcc manual in one PR.

Reply via email to