printf("%m") doesn't generate a warning -- shouldn't it?

Thomas Munro munro at ip9.org
Tue May 22 21:39:06 UTC 2018


On 22 May 2018 at 22:39, Dimitry Andric <dim at freebsd.org> wrote:
> On 21 May 2018, at 15:43, Konstantin Belousov <kostikbel at gmail.com> wrote:
>> Why not add %m instead ?  It is very easy and several people did it in
>> round-about ways.
>
> Sure, that is certainly a nice thing to have, and let's commit it.

+1

> But
> it's still an upstream bug if an explicit warning flag for non-ISO
> printf specifiers doesn't work.  I'll take that discussion to the LLVM
> bug tracker.

Thanks.  Agreed.  Also, even if %m is committed, older FreeBSD
releases will be affected for some time, and many other operating
systems are too.


More information about the freebsd-hackers mailing list