Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-07-19T04:06:01Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> This is causing a compilation warning on Windows:
> src/timezone/zic.c(2401): warning C4804: '-' : unsafe use of type
> 'bool' in operation
Hmmm ... the code looks like
bool locut,
hicut;
...
thistimecnt = -locut - hicut;
so I think your compiler has a point. I shall complain to upstream.
At best, it's really unobvious what this code is meant to do, and
at worst (eg, depending on whether bool promotes to signed or unsigned
int) the results are unportable.
regards, tom lane
Commits
-
Silence compiler warning, hopefully.
- 847561c1d5e2 9.4.24 landed
- caa22d72a5f0 9.5.19 landed
- e480d8350be1 9.6.15 landed
- 8a4fa297a5dd 10.10 landed
- ee9417a04fba 11.5 landed
- 533522846ba0 12.0 landed
- 421466863548 13.0 landed
-
Sync our copy of the timezone library with IANA release tzcode2019b.
- f285322f9cd3 13.0 cited