diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-11 15:11:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 15:11:06 -0700 |
commit | acd282fd5b3ca4de302b33c9361dbc433593c4ca (patch) | |
tree | 672580037e737921e0878130507fab003cf1f363 /Python/ast.c | |
parent | c4bccd3c7617018b1ce16f95840ffe1a890d44df (diff) | |
download | cpython-git-acd282fd5b3ca4de302b33c9361dbc433593c4ca.tar.gz |
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 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions