This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/15338] New: There should be a __format__ attribute for syslog.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]