Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YcfVz-0000Bo-N0 for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2015 19:38:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YcfVz-0001Y6-49 for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2015 19:38:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YcfVx-0001Y0-Pe for pgsql-hackers@postgreSQL.org; Mon, 30 Mar 2015 19:38:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YcfVt-0003Io-Qs for pgsql-hackers@postgreSQL.org; Mon, 30 Mar 2015 19:38:24 +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 t2UJcGKV010997; Mon, 30 Mar 2015 15:38:16 -0400 From: Tom Lane To: Andres Freund cc: Michael Paquier , pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Centralize definition of integer limits. In-reply-to: References: <20150330104825.GE4878@alap3.anarazel.de> Comments: In-reply-to Michael Paquier message dated "Mon, 30 Mar 2015 20:09:12 +0900" Date: Mon, 30 Mar 2015 15:38:16 -0400 Message-ID: <10996.1427744296@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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > On Mon, Mar 30, 2015 at 7:48 PM, Andres Freund wrote: >> On 2015-03-30 14:01:25 +0900, Michael Paquier wrote: >>> My OSX dev box is generating a couple of warnings since this commit: >>> pg_dump.c:14548:45: warning: format specifies type 'long' but the >>> argument has type 'long long' [-Wformat] FWIW, I'm seeing the same thing on my OSX laptop. I think the explanation is simple: both "long" and "long long" are 64 bits on this machine. Our configure chooses the former to be "int64", but stdint.h is using the latter. I'm not sure there's any good way to know what stdint.h thinks is int64, but we can't do a half-baked integration job like this. Either we revert 83ff1618b altogether, or we make int64/uint64 depend on definitions from stdint.h rather than being chosen independently by configure. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers