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

            Bug ID: 115532
           Summary: Small documentation fixes for
                    -Wsuggest-attribute=returns_nonnull
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at eisentraut dot org
  Target Milestone: ---

Created attachment 58457
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58457&action=edit
patch with fixes

The documentation for -Wsuggest-attribute=returns_nonnull (new in gcc 14,
commit 53ba8d66955) contains a few small mistakes.

See
https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Wsuggest-attribute_003d
for the current rendering.

1. Wrong punctuation:
"-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]returns_nonnull|"
(note "]" after "malloc").

2. Not added to the overview earlier in the page (also "cold" was missing
there).

3. Not added to the index. (Instead, the "no" form was added as in @itemx,
which is inconsistent with the other entries.)

I'm attaching a patch with these three things fixed.  (Note, I have not built
the documentation with this.)

Reply via email to