public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114780] New: Using C23 nullptr as sentinel gives missing sentinel warning
@ 2024-04-19  9:58 cazfi74 at gmail dot com
  2024-04-19 11:10 ` [Bug c/114780] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: cazfi74 at gmail dot com @ 2024-04-19  9:58 UTC (permalink / raw)
  To: gcc-bugs

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);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-23  6:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-19  9:58 [Bug c/114780] New: Using C23 nullptr as sentinel gives missing sentinel warning cazfi74 at gmail dot com
2024-04-19 11:10 ` [Bug c/114780] " jakub at gcc dot gnu.org
2024-04-19 22:13 ` cvs-commit at gcc dot gnu.org
2024-04-19 22:25 ` jakub at gcc dot gnu.org
2024-04-21  4:09 ` cvs-commit at gcc dot gnu.org
2024-04-23  6:42 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).