Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit - Mailing list pgsql-committers

From Teodor Sigaev
Subject Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit
Date
Msg-id 44FEFA34.7060305@sigaev.ru
Whole thread Raw
In response to Re: pgsql: Fix compiler warnings on 64-bit boxes:  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes:
List pgsql-committers
>     ereport(...errmsg("trouble at offset " UINT64_FORMAT, bigintvar));

One more solution: add format code %D to expand_fmt_string() which should be
expanded to usual %d on 32-bit architecture and to UINT64_FORMAT on 64-bit.

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

pgsql-committers by date:

Previous
From: h-saito@pgfoundry.org (User H-saito)
Date:
Subject: npgsql - Npgsql: The project file for VisualStudio2003 is added.
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes: