]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 Dec 2020 16:33:05 +0000 (08:33 -0800)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 16:33:05 +0000 (17:33 +0100)
commit7492b55ea0ca993c353b6373341b92e40faa9c4d
treef55adbd051b0bf6a4648a8660f3b437cb9b39d00
parentcd7412e3c4a2805009d0baa948cd4026d6fa6f3d
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)

"uint8_t day" is unsigned and so "day < 0" test is always true.
Remove the test to fix the following warnings on Windows:

modules\_zoneinfo.c(1224): warning C4068: unknown pragma
modules\_zoneinfo.c(1225): warning C4068: unknown pragma
modules\_zoneinfo.c(1227): warning C4068: unknown pragma
(cherry picked from commit aefb69b23f056c61e82ad228d950f348de090c70)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Modules/_zoneinfo.c