From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9FC3A3849AC5; Fri, 19 Apr 2024 09:58:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FC3A3849AC5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713520705; bh=IfwjhDHBqi6ZMHcKkGx9/uE2JMbQlGS81Qw7W5x7nX8=; h=From:To:Subject:Date:From; b=WLEHkDz6fEO3epVmu0Utl4qh5T2+DVsNalgsQCyp9T18CGTcuZs1pmbmmBqh8nBlB UnUVKzrlI8c0GSCXs7ECe8waMdm0FteNtYJ6uqNB8iYp6Pl5OV1PSPEZLY+6y90c0H ciTzhX3YwlKECE6bhxveM/jNPwqH7MKyo6p7xtKg= From: "cazfi74 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114780] New: Using C23 nullptr as sentinel gives missing sentinel warning Date: Fri, 19 Apr 2024 09:58:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cazfi74 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114780 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=3D57988&action=3Dedit Minimum testcase Compiling attached code with "gcc -std=3Dc2x -Wformat -c nullptrsentinel.c" produces warning: nullptrsentinel.c: In function =E2=80=98caller=E2=80=99: nullptrsentinel.c:5:3: warning: missing sentinel in function call [-Wformat= =3D] 5 | sentinental(nullptr);=