diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-11 22:11:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 22:11:06 (GMT) |
commit | acd282fd5b3ca4de302b33c9361dbc433593c4ca (patch) | |
tree | 672580037e737921e0878130507fab003cf1f363 /Doc/c-api/veryhigh.rst | |
parent | c4bccd3c7617018b1ce16f95840ffe1a890d44df (diff) | |
download | cpython-acd282fd5b3ca4de302b33c9361dbc433593c4ca.zip cpython-acd282fd5b3ca4de302b33c9361dbc433593c4ca.tar.gz cpython-acd282fd5b3ca4de302b33c9361dbc433593c4ca.tar.bz2 |
Initialize a variable to make the compiler happy. (GH-9153)
GCC complains:
Python/pylifecycle.c: In function ‘_Py_InitializeFromConfig’:
Python/pylifecycle.c:900:13: warning: ‘interp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
err = _Py_InitializeMainInterpreter(interp, &main_config);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This seems spurious since &interp is passed to _Py_InitializeCore. Anyway, we
can easily initialize to quiet the warning.
Diffstat (limited to 'Doc/c-api/veryhigh.rst')
0 files changed, 0 insertions, 0 deletions