This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15338] New: There should be a __format__ attribute for syslog.
- From: "matthias dot andree at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2004 14:32:38 -0000
- Subject: [Bug c/15338] New: There should be a __format__ attribute for syslog.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I like GCC's format string checking feature and use it a lot.
It has one minor shortcoming though: when used with strict warnings, I get
hundreds of complaints that "%m" was not an ISO-C format string specifier.
Of course it isn't, and GCC is right about that.
I am suggesting that GCC 3.5 adds support for syslog format strings that are
essentially the same as printf but with %m added (which is the equivalent of
putting %s and adding strerror(errno) to the arguments).
--
Summary: There should be a __format__ attribute for syslog.
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: matthias dot andree at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15338