Re: Allowing printf("%m") only where it actually works - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Allowing printf("%m") only where it actually works
Date
Msg-id CAEepm=2ay-C2NdWm62NPJvzwic7A_R+Q3wukaLvi=QsY3J07sQ@mail.gmail.com
Whole thread Raw
In response to Re: Allowing printf("%m") only where it actually works  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
On Mon, May 21, 2018 at 2:41 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> I've raised this on the freebsd-hackers
> list, let's see... I bet there's other software out there that just
> prints out "m" when things go wrong.  It's arguably something that
> you'd want the complier to understand as a C dialect thing.

Result: FreeBSD printf() now supports %m, and an issue is being raised
with clang about lack of warnings on OSes that don't grok %m, and lack
of warnings when you say -Wformat-non-iso on any OS.  Let's see how
that goes.

-- 
Thomas Munro
http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plperl fails with perl 5.28
Next
From: David Fetter
Date:
Subject: Re: PostgreSQL and Homomorphic Encryption