From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Amit Langote <amitlangote09@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Centralize json and jsonb handling of datetime types
Date: Wed, 17 Jan 2018 03:34:52 -0500
Message-ID: <037c6f64-7059-41f6-0674-44694ceba972@2ndQuadrant.com> (raw)
In-Reply-To: <CA+HiwqE4un9s7ebuQL9s4Qf1kSUT5mrCzsJqnOMv+-evLaqdrw@mail.gmail.com>
References: <E1ebbbJ-0002QU-Pe@gemulon.postgresql.org>
<CA+HiwqE4un9s7ebuQL9s4Qf1kSUT5mrCzsJqnOMv+-evLaqdrw@mail.gmail.com>
On 01/17/2018 12:34 AM, Amit Langote wrote:
> On Wed, Jan 17, 2018 at 9:29 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
>> Centralize json and jsonb handling of datetime types
> [ ... ]
>
>> src/include/utils/date.h | 4 +-
> I noticed that these changes cause the following warning to be emitted
> when compiling with gcc (GCC) 6.2.0:
>
> In file included from gram.y:63:0:
> ../../../src/include/utils/date.h:76:41: warning: ‘struct pg_tm’
> declared inside parameter list will not be visible outside of this
> definition or declaration
> extern int time2tm(TimeADT time, struct pg_tm *tm, fsec_t *fsec);
> ^~~~~
> ../../../src/include/utils/date.h:77:46: warning: ‘struct pg_tm’
> declared inside parameter list will not be visible outside of this
> definition or declaration
> extern int timetz2tm(TimeTzADT *time, struct pg_tm *tm, fsec_t *fsec, int *tzp);
>
> Attached is a fix.
>
Thanks, this is the right fix but in the wrong place. I have added the
include in the file where pg_tm is actually used.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: andrew.dunstan@2ndquadrant.com, amitlangote09@gmail.com, andrew@dunslane.net
Subject: Re: pgsql: Centralize json and jsonb handling of datetime types
In-Reply-To: <037c6f64-7059-41f6-0674-44694ceba972@2ndQuadrant.com>
References: <E1ebbbJ-0002QU-Pe@gemulon.postgresql.org> <CA+HiwqE4un9s7ebuQL9s4Qf1kSUT5mrCzsJqnOMv+-evLaqdrw@mail.gmail.com> <037c6f64-7059-41f6-0674-44694ceba972@2ndQuadrant.com>
* 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