This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/80895] format not a string literal and no format arguments; in GCC itself
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 27 May 2017 01:30:36 +0000
- Subject: [Bug other/80895] format not a string literal and no format arguments; in GCC itself
- Auto-submitted: auto-generated
- References: <bug-80895-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80895
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Miloradovsky from comment #4)
> Hmm, man printf(3) doesn't tell anything about the formats, what are they
> for?
They are part of the gcc diagnostic format. Gcc does not use printf directly
for those functions. See how they have the gcc_format attribute rather than
the printf_format attribute.