From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix some compiler warnings with timestamp parsing in formatting.
Date: Wed, 11 Dec 2019 01:05:56 +0000
Message-ID: <E1ieqRw-0004Xq-WA@gemulon.postgresql.org> (raw)
Fix some compiler warnings with timestamp parsing in formatting.c
gcc-7 used with a sufficient optimization level complains about warnings
around do_to_timestamp() regarding the initialization and handling of
some of its variables. Recent commits 66c74f8 and d589f94 made things
made the interface more confusing, so document which variables are
always expected and initialize properly the optional ones when they are
set.
Author: Andrey Lepikhov, Michael Paquier
Discussion: https://postgr.es/m/a7e28b83-27b1-4e1c-c76b-4268c4b785bc@postgrespro.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c341c7d391e256f80cfbae53b4f55278bffca699
Modified Files
--------------
src/backend/utils/adt/formatting.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Fix some compiler warnings with timestamp parsing in formatting.
In-Reply-To: <E1ieqRw-0004Xq-WA@gemulon.postgresql.org>
References: <E1ieqRw-0004Xq-WA@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