diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-10 18:27:19 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-09-10 18:27:22 -0700 |
commit | 444f3e657f6e1264585fc10f47cc71ad829c4864 (patch) | |
tree | f553c88db2b4281bc038ae3fee7530152b0b5937 /Python/import.c | |
parent | ed2e9ab804606019f167ef914bde43bc135c725f (diff) | |
download | cpython-git-benjamin-interp-initialize.tar.gz |
Initialize a variable to make the compiler happy.benjamin-interp-initialize
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/import.c')
0 files changed, 0 insertions, 0 deletions