Re: pg_xlogdump compiler warning

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pg_xlogdump compiler warning
Дата
Msg-id 20130226123541.GE4405@awork2.anarazel.de
обсуждение исходный текст
Ответ на pg_xlogdump compiler warning  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: pg_xlogdump compiler warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

On 2013-02-25 18:15:48 -0500, Peter Eisentraut wrote:
> compat.c: In function ‘timestamptz_to_str’:
> compat.c:56:9: error: passing argument 1 of ‘localtime’ from incompatible pointer type [-Werror]
> In file included from compat.c:21:0:
> /usr/include/time.h:237:19: note: expected ‘const time_t *’ but argument is of type ‘pg_time_t *’
>
> gcc 4.7.2

32bit I guess?

A simple cast should do for now. Patch attached.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [RFC] Extend namespace of valid guc names
Следующее
От: Andres Freund
Дата:
Сообщение: Re: PGXS contrib builds broken?