[New-bugs-announce] [issue35373] PyInit_timezone() must return a value

Serhiy Storchaka report at bugs.python.org
Sat Dec 1 13:03:04 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

PyInit_timezone() is declared as returning int, but it contains return statements without value.

>From compiler output on Windows:

  timemodule.c
..\Modules\timemodule.c(1584): warning C4033: 'PyInit_timezone' must return a value [C:\py\cpython3.8\PCbuild\pythoncore.vcxproj]
..\Modules\timemodule.c(1589): warning C4033: 'PyInit_timezone' must return a value [C:\py\cpython3.8\PCbuild\pythoncore.vcxproj]
..\Modules\timemodule.c(1593): warning C4033: 'PyInit_timezone' must return a value [C:\py\cpython3.8\PCbuild\pythoncore.vcxproj]
c:\py\cpython3.8\modules\timemodule.c(1647): warning C4715: 'PyInit_timezone': not all control paths return a value [C:\py\cpython3.8\PCbuild\pythoncore.vcxproj]

----------
components: Extension Modules
messages: 330858
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: PyInit_timezone() must return a value
type: compile error

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35373>
_______________________________________


More information about the New-bugs-announce mailing list