[Bug c/99291] New: maybe_warn_pass_by_reference uses outdated format string
roland.illig at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri Feb 26 16:32:48 GMT 2021
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?
More information about the Gcc-bugs
mailing list