public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/99291] New: maybe_warn_pass_by_reference uses outdated format string
@ 2021-02-26 16:32 roland.illig at gmx dot de
  2021-02-27  1:14 ` [Bug c/99291] " roland.illig at gmx dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: roland.illig at gmx dot de @ 2021-02-26 16:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99291
           Summary: maybe_warn_pass_by_reference uses outdated format
                    string
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

tree-ssa-uninit.c says:
> inform (loc, "in a call to %qD declared with "
>         "attribute %<%s%> here", fndecl, access_str);

This format string uses the sequence %<%s%>, for which there is the shortcut
%qs.

Using the %<%s%> should be detected and prevented by check_plain in c-format.c.

Is that check not active by default?

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

end of thread, other threads:[~2022-03-03 23:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26 16:32 [Bug c/99291] New: maybe_warn_pass_by_reference uses outdated format string roland.illig at gmx dot de
2021-02-27  1:14 ` [Bug c/99291] " roland.illig at gmx dot de
2021-02-27  1:15 ` roland.illig at gmx dot de
2021-02-27  1:20 ` roland.illig at gmx dot de
2021-02-27  1:20 ` roland.illig at gmx dot de
2021-02-27 13:05 ` redi at gcc dot gnu.org
2021-03-01 12:06 ` marxin at gcc dot gnu.org
2022-03-03 23:19 ` roland.illig at gmx dot de

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