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

--- Comment #4 from Christos Zoulas <christos at zoulas dot com> ---
I believe that -pedantic enables other "pedantic" warnings which I don't belive
I want. I can add a specific printf format that does not accept %m, but I would
still need to add a syslog format that does (and annotate the syslog functions
with that instead of printf).

Perhaps it is possible to have a separate -W switch that will enable this
behavior (warn for %m in printf formats), and add a syslog format that allows
%m.

I think that we want to encourage people to write portable code, and using %m
in printf isn't.

My goal is to differentiate between syslog-like functions that support %m and
printf-like functions that don't.

Is adding a separate -W flag to enable warnings for %m in printf and a syslog
format acceptable? I think that non-glibc systems will benefit from that.

Reply via email to