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: Fix compiler warning induced by commit d8b15eeb8.
Date: Wed, 24 Jun 2020 19:48:38 +0000
Message-ID: <E1joBNu-0007rU-MU@gemulon.postgresql.org> (raw)

Fix compiler warning induced by commit d8b15eeb8.

I forgot that INT64_FORMAT can't be used with sscanf on Windows.
Use the same trick of sscanf'ing into a temp variable as we do in
some other places in zic.c.

The upstream IANA code avoids the portability problem by relying on
<inttypes.h>'s SCNdFAST64 macro.  Once we're requiring C99 in all
branches, we should do likewise and drop this set of diffs from
upstream.  For now, though, a hack seems fine, since we do not
actually care about leapseconds anyway.

Discussion: https://postgr.es/m/4e5d1a5b-143e-e70e-a99d-a3b01c1ae7c3@2ndquadrant.com

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



view thread (7+ messages)

Message-ID: <E1joBNu-0007rU-MU@gemulon.postgresql.org>
Permalink:  ../E1joBNu-0007rU-MU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1joBNu-0007rU-MU@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: Fix compiler warning induced by commit d8b15eeb8.
  In-Reply-To: <E1joBNu-0007rU-MU@gemulon.postgresql.org>
  References: <E1joBNu-0007rU-MU@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