Re: [HACKERS] mvstats triggers 32bit warnings - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] mvstats triggers 32bit warnings
Date
Msg-id 20170407223057.lzkn7ti6dym6sllr@alvherre.pgsql
Whole thread Raw
In response to [HACKERS] mvstats triggers 32bit warnings  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund wrote:
> Hi,
> 
> compiling on linux 32 bit I get a lot of warnings due to printf format.
> I suspect most of them should just be cured by using %zd or %zu instead
> of %ld.

You're right, they are.  Confirmed, and pushed fix using %zd.  I suppose
%zu would be "more correct", but this doesn't raise warnings anymore.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] monitoring.sgml missing tag
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] SCRAM authentication, take three