diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-12-19 10:35:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 10:35:58 (GMT) |
commit | 5d8624647d0b8ccb22b17b9e819a8e0c3fb4fe4a (patch) | |
tree | b83a730b4c1711f9d50bf0477f552a714160cf55 /Include/warnings.h | |
parent | 21be85f52030b828679ffb9c8cddb5ac48946a30 (diff) | |
download | cpython-5d8624647d0b8ccb22b17b9e819a8e0c3fb4fe4a.zip cpython-5d8624647d0b8ccb22b17b9e819a8e0c3fb4fe4a.tar.gz cpython-5d8624647d0b8ccb22b17b9e819a8e0c3fb4fe4a.tar.bz2 |
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.
Diffstat (limited to 'Include/warnings.h')
-rw-r--r-- | Include/warnings.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/warnings.h b/Include/warnings.h index 25f715e..a3f83ff 100644 --- a/Include/warnings.h +++ b/Include/warnings.h @@ -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, |