Re: mvstats triggers 32bit warnings

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org, Tomas Vondra <tv(at)fuzzy(dot)cz>
Subject: Re: mvstats triggers 32bit warnings
Date: 2017-04-07 22:30:57
Message-ID: 20170407223057.lzkn7ti6dym6sllr@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-04-07 22:32:57 Re: SCRAM authentication, take three
Previous Message Peter Eisentraut 2017-04-07 22:30:47 Re: monitoring.sgml missing tag