Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YcXI6-0004wt-QA for pgsql-committers@arkaria.postgresql.org; Mon, 30 Mar 2015 10:51:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YcXI5-0001m6-Qy for pgsql-committers@arkaria.postgresql.org; Mon, 30 Mar 2015 10:51:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YcXI3-0001es-II for pgsql-committers@postgresql.org; Mon, 30 Mar 2015 10:51:31 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YcXHy-0002lf-Ll for pgsql-committers@postgresql.org; Mon, 30 Mar 2015 10:51:28 +0000 Received: from intern.anarazel.de (unknown [89.204.135.29]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 6A368860001; Mon, 30 Mar 2015 12:51:25 +0200 (CEST) Date: Mon, 30 Mar 2015 12:51:24 +0200 From: Andres Freund To: Michael Paquier Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Centralize definition of integer limits. Message-ID: <20150330105124.GF4878@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) 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 On 2015-03-30 14:27:20 +0900, Michael Paquier wrote: > INT64_MODIFIER is "l" on OSX, causing this warning. Perhaps there is > something better to do instead of casting blindly to int64. Thoughts? > -- > Michael > diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c > index 7da5c41..a15c875 100644 > --- a/src/bin/pg_dump/pg_dump.c > +++ b/src/bin/pg_dump/pg_dump.c > @@ -14545,8 +14545,8 @@ dumpSequence(Archive *fout, DumpOptions *dopt, TableInfo *tbinfo) > /* Make sure we are in proper schema */ > selectSourceSchema(fout, tbinfo->dobj.namespace->dobj.name); > > - snprintf(bufm, sizeof(bufm), INT64_FORMAT, SEQ_MINVALUE); > - snprintf(bufx, sizeof(bufx), INT64_FORMAT, SEQ_MAXVALUE); > + snprintf(bufm, sizeof(bufm), INT64_FORMAT, (int64) SEQ_MINVALUE); > + snprintf(bufx, sizeof(bufx), INT64_FORMAT, (int64) SEQ_MAXVALUE); > I think that's entirely the wrong approach. ISTM that, independent from this patch, INT64CONST/HAVE_LL_CONSTANTS are wrong for your environment. The HAVE_LL_CONSTANTS test is probably too simplistic. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers