• Benjamin Peterson's avatar
    Initialize a variable to make the compiler happy. (GH-9153) · acd282fd
    Benjamin Peterson yazdı
    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.
    acd282fd
pylifecycle.c 61 KB