]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614)
authorVictor Stinner <vstinner@python.org>
Wed, 16 Dec 2020 15:26:15 +0000 (16:26 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 15:26:15 +0000 (16:26 +0100)
commitaefb69b23f056c61e82ad228d950f348de090c70
treea34be085ccf5725193707099e29b19e287104d15
parent37caeb172b1d51340c1b0db9c4c75f138bda6537
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614)

"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
Modules/_zoneinfo.c