Re: pgsql: XLogReader general code cleanup - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: XLogReader general code cleanup
Date
Msg-id 56FFEF52.5010908@gmx.net
Whole thread Raw
In response to pgsql: XLogReader general code cleanup  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: pgsql: XLogReader general code cleanup
List pgsql-committers
On 03/30/2016 05:57 PM, Alvaro Herrera wrote:
> XLogReader general code cleanup

This is causing compiler warnings on 32-bit environments(?):

xlogreader.c: In function ‘XLogReadRecord’:
xlogreader.c:334:7: error: format ‘%lu’ expects argument of type ‘long
unsigned int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
        "invalid record length at %X/%X: wanted %lu, got %u",
        ^
xlogreader.c: In function ‘ValidXLogRecordHeader’:
xlogreader.c:633:7: error: format ‘%lu’ expects argument of type ‘long
unsigned int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
        "invalid record length at %X/%X: wanted %lu, got %u",
        ^



pgsql-committers by date:

Previous
From: Teodor Sigaev
Date:
Subject: pgsql: Fix condition in e9e441c9fac6cbc0510cded6abb9d0e6b646ecaf
Next
From: Tom Lane
Date:
Subject: pgsql: Suppress compiler warning.