pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add all structured objects passed to pushJsonbValue piecewise.
Date: Tue, 26 May 2015 22:00:01 -0400
Message-ID: <7885.1432692001@sss.pgh.pa.us> (raw)
In-Reply-To: <556513EA.2080107@gmx.net>
References: <E1YxGi0-0000Ms-Kl@gemulon.postgresql.org>
	<556513EA.2080107@gmx.net>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Peter Eisentraut <peter_e@gmx.net> writes:
> On 5/26/15 11:24 AM, Andrew Dunstan wrote:
>> Add all structured objects passed to pushJsonbValue piecewise.

> This causes a compiler warning:

> jsonb_util.c: In function 'pushJsonbValue':
> jsonb_util.c:535:3: error: passing argument 1 of 'JsonbIteratorInit'
> from incompatible pointer type [-Werror]

I'm getting multiple warnings (probably Peter's build is aborting
after the first one).  Please fix.

jsonb_util.c: In function 'pushJsonbValue':
jsonb_util.c:535: warning: passing argument 1 of 'JsonbIteratorInit' from incompatible pointer type
../../../../src/include/utils/jsonb.h:422: note: expected 'struct JsonbContainer *' but argument is of type 'struct JsonbValue *'
jsonfuncs.c: In function 'addJsonbToParseState':
jsonfuncs.c:3257: warning: passing argument 3 of 'pushJsonbValue' from incompatible pointer type
../../../../src/include/utils/jsonb.h:420: note: expected 'struct JsonbValue *' but argument is of type 'struct JsonbContainer *'
jsonfuncs.c:3259: warning: passing argument 3 of 'pushJsonbValue' from incompatible pointer type
../../../../src/include/utils/jsonb.h:420: note: expected 'struct JsonbValue *' but argument is of type 'struct JsonbContainer *'
jsonfuncs.c:3237: warning: unused variable 'type'

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (4+ messages)

Message-ID: <7885.1432692001@sss.pgh.pa.us>
Permalink:  ../7885.1432692001@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7885.1432692001@sss.pgh.pa.us

 · 

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, andrew@dunslane.net, peter_e@gmx.net
  Subject: Re: pgsql: Add all structured objects passed to pushJsonbValue piecewise.
  In-Reply-To: <7885.1432692001@sss.pgh.pa.us>
  References: <E1YxGi0-0000Ms-Kl@gemulon.postgresql.org> <556513EA.2080107@gmx.net> <7885.1432692001@sss.pgh.pa.us>

* 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