Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoY3c-0001LL-4D for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jul 2019 18:56:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoY3a-0001RW-NA for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jul 2019 18:56:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoY3a-0001Ou-Ba for pgsql-hackers@lists.postgresql.org; Fri, 19 Jul 2019 18:56:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hoY3X-0007U6-W3 for pgsql-hackers@lists.postgresql.org; Fri, 19 Jul 2019 18:56:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6JIuY9o002144; Fri, 19 Jul 2019 14:56:34 -0400 From: Tom Lane To: Michael Paquier cc: Postgres hackers Subject: Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20 In-reply-to: <31996.1563509161@sss.pgh.pa.us> References: <20190719035347.GJ1859@paquier.xyz> <31996.1563509161@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 19 Jul 2019 00:06:01 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2142.1563562594.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 19 Jul 2019 14:56:34 -0400 Message-ID: <2143.1563562594@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Michael Paquier writes: >> This is causing a compilation warning on Windows: > ...so I think your compiler has a point. I shall complain to upstream. The IANA folk want to fix it like this: diff --git a/zic.c b/zic.c index 8bf5628..a84703a 100644 --- a/zic.c +++ b/zic.c @@ -2145,7 +2145,7 @@ writezone(const char *const name, const char *const = string, char version, } if (pass =3D=3D 1 && !want_bloat()) { utcnt =3D stdcnt =3D thisleapcnt =3D 0; - thistimecnt =3D - locut - hicut; + thistimecnt =3D - (locut + hicut); thistypecnt =3D thischarcnt =3D 1; thistimelim =3D thistimei; } I'm not quite convinced whether that will silence the warning, but at least it's a bit less unreadable. regards, tom lane