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

            Bug ID: 114780
           Summary: Using C23 nullptr as sentinel gives missing sentinel
                    warning
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cazfi74 at gmail dot com
  Target Milestone: ---

Created attachment 57988
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57988&action=edit
Minimum testcase

Compiling attached code with "gcc -std=c2x -Wformat -c nullptrsentinel.c"
produces warning:

nullptrsentinel.c: In function ‘caller’:
nullptrsentinel.c:5:3: warning: missing sentinel in function call [-Wformat=]
    5 |   sentinental(nullptr);

Reply via email to