summaryrefslogtreecommitdiff
path: root/Python/dynload_shlib.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-10 18:27:19 -0700
committerBenjamin Peterson <benjamin@python.org>2018-09-10 18:27:22 -0700
commit444f3e657f6e1264585fc10f47cc71ad829c4864 (patch)
treef553c88db2b4281bc038ae3fee7530152b0b5937 /Python/dynload_shlib.c
parented2e9ab804606019f167ef914bde43bc135c725f (diff)
downloadcpython-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/dynload_shlib.c')
0 files changed, 0 insertions, 0 deletions