pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Rijkers <er@xs4all.nl>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: pgsql: Centralize json and jsonb handling of datetime types
Date: Wed, 17 Jan 2018 07:23:48 +0100
Message-ID: <f109af7bc22f934980a60b3c49dd3207@xs4all.nl> (raw)
In-Reply-To: <E1ebbbJ-0002QU-Pe@gemulon.postgresql.org>
References: <E1ebbbJ-0002QU-Pe@gemulon.postgresql.org>

On 2018-01-17 01:29, Andrew Dunstan wrote:
> Centralize json and jsonb handling of datetime types
[...]
> https://git.postgresql.org/pg/commitdiff/cc4feded0a31d2b732d4ea68613115cb720e624e
> 
> Modified Files
> --------------
> src/backend/utils/adt/date.c  |   6 +--
> src/backend/utils/adt/json.c  | 122 
> ++++++++++++++++++++++++++++++++----------
> src/backend/utils/adt/jsonb.c |  70 ++++--------------------
> src/include/utils/date.h      |   4 +-
> src/include/utils/jsonapi.h   |   2 +
> 5 files changed, 109 insertions(+), 95 deletions(-)

Latest gcc 7.2.0 compile shows these warnings (I suppose these come from 
this commit):

Compiling core:

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);
                                               ^~~~~
In file included from formatting.c:92: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);


... while contrib adds:

In file included from btree_gin.c:12: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);
                                               ^~~~~
In file included from btree_utils_num.c:9: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);
                                               ^~~~~
In file included from btree_time.c:9: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);
                                               ^~~~~
In file included from btree_date.c:9: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);


No errors, and 'make check' and 'make check-world' are both OK.


thanks,

Erik Rijkers




view thread (5+ messages)  latest in thread

Message-ID: <f109af7bc22f934980a60b3c49dd3207@xs4all.nl>
Permalink:  ../f109af7bc22f934980a60b3c49dd3207@xs4all.nl/
Also on:    postgresql.org/message-id/f109af7bc22f934980a60b3c49dd3207@xs4all.nl

 · 

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: er@xs4all.nl, andrew@dunslane.net, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Centralize json and jsonb handling of datetime types
  In-Reply-To: <f109af7bc22f934980a60b3c49dd3207@xs4all.nl>
  References: <E1ebbbJ-0002QU-Pe@gemulon.postgresql.org> <f109af7bc22f934980a60b3c49dd3207@xs4all.nl>

* 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