mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-32030: Fix compiler warnings (#4921)
Fix compiler warnings in Py_FinalizeEx(): only define variables if they are needed, add #ifdef. Other cleanup changes: * _PyWarnings_InitWithConfig() is no more needed: call _PyWarnings_Init() instead. * Inline pymain_init_main_interpreter() in its caller. This subfunction is no more justifed.
This commit is contained in:
parent
21be85f520
commit
5d8624647d
4 changed files with 17 additions and 40 deletions
|
@ -7,9 +7,6 @@ extern "C" {
|
|||
#ifndef Py_LIMITED_API
|
||||
PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
|
||||
#endif
|
||||
#ifdef Py_BUILD_CORE
|
||||
PyAPI_FUNC(PyObject*) _PyWarnings_InitWithConfig(const _PyCoreConfig *config);
|
||||
#endif
|
||||
|
||||
PyAPI_FUNC(int) PyErr_WarnEx(
|
||||
PyObject *category,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue