Re: [HACKERS] pg_xlogdump compiler warning

2013-02-27 Thread Andres Freund
On 2013-02-26 15:52:01 -0500, Tom Lane wrote: > Andres Freund writes: > > 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

Re: [HACKERS] pg_xlogdump compiler warning

2013-02-26 Thread Tom Lane
Andres Freund writes: > 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.

Re: [HACKERS] pg_xlogdump compiler warning

2013-02-26 Thread Andres Freund
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 t

[HACKERS] pg_xlogdump compiler warning

2013-02-25 Thread Peter Eisentraut
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 -- Se