]> granicus.if.org Git - python/commit
bpo-32030: Fix compiler warnings (#4921)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Dec 2017 10:35:58 +0000 (11:35 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2017 10:35:58 +0000 (11:35 +0100)
commit5d8624647d0b8ccb22b17b9e819a8e0c3fb4fe4a
treeb83a730b4c1711f9d50bf0477f552a714160cf55
parent21be85f52030b828679ffb9c8cddb5ac48946a30
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.
Include/warnings.h
Modules/main.c
Python/_warnings.c
Python/pylifecycle.c