pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Select appropriate PG_PRINTF_ATTRIBUTE for recent NetBSD.
Date: Tue, 09 Oct 2018 15:10:14 +0000
Message-ID: <E1g9teI-0000Jo-Ei@gemulon.postgresql.org> (raw)

Select appropriate PG_PRINTF_ATTRIBUTE for recent NetBSD.

NetBSD-current generates a large number of warnings about "%m" not
being appropriate to use with *printf functions.  While that's true
for their native printf, it's surely not true for snprintf.c, so I
think they have misunderstood gcc's definition of the "gnu_printf"
archetype.  Nonetheless, choosing "__syslog__" instead silences the
warnings; so teach configure about that.

Since this is only a cosmetic warning issue (and anyway it depends
on previous hacking to be self-consistent), no back-patch.

Discussion: https://postgr.es/m/16785.1539046036@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aed9fa0bd8973fd967724003e641a5b7054d6a80

Modified Files
--------------
config/c-compiler.m4       | 35 +++++++++++++++++++++++++----------
configure                  | 41 +++++++++++++++++++++++++++++++++++------
src/include/pg_config.h.in |  2 +-
3 files changed, 61 insertions(+), 17 deletions(-)



Message-ID: <E1g9teI-0000Jo-Ei@gemulon.postgresql.org>
Permalink:  ../E1g9teI-0000Jo-Ei@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g9teI-0000Jo-Ei@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Select appropriate PG_PRINTF_ATTRIBUTE for recent NetBSD.
  In-Reply-To: <E1g9teI-0000Jo-Ei@gemulon.postgresql.org>
  References: <E1g9teI-0000Jo-Ei@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox