Re: pgsql: XLogReader general code cleanup

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql: XLogReader general code cleanup
Дата
Msg-id 56FFEF52.5010908@gmx.net
обсуждение исходный текст
Ответ на pgsql: XLogReader general code cleanup  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: pgsql: XLogReader general code cleanup  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Fix condition in e9e441c9fac6cbc0510cded6abb9d0e6b646ecaf
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Suppress compiler warning.