Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxQdg-0005R9-3I for pgsql-committers@arkaria.postgresql.org; Wed, 27 May 2015 02:00:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxQdf-0000Ru-IK for pgsql-committers@arkaria.postgresql.org; Wed, 27 May 2015 02:00:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxQde-0000PT-HZ for pgsql-committers@postgresql.org; Wed, 27 May 2015 02:00:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YxQdb-0004z1-Vm for pgsql-committers@postgresql.org; Wed, 27 May 2015 02:00:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t4R201t9007886; Tue, 26 May 2015 22:00:01 -0400 From: Tom Lane To: Andrew Dunstan cc: Peter Eisentraut , pgsql-committers@postgresql.org Subject: Re: pgsql: Add all structured objects passed to pushJsonbValue piecewise. In-reply-to: <556513EA.2080107@gmx.net> References: <556513EA.2080107@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Tue, 26 May 2015 20:46:34 -0400" Date: Tue, 26 May 2015 22:00:01 -0400 Message-ID: <7885.1432692001@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Peter Eisentraut 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