From: Victor Stinner Date: Wed, 15 Jan 2020 10:23:25 +0000 (+0100) Subject: bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010) X-Git-Tag: v3.9.0a3~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f12ac18a407983a23d43ae785e805e773571477;p=thirdparty%2FPython%2Fcpython.git bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010) The function has no return value. --- diff --git a/Python/errors.c b/Python/errors.c index cdb44605056a..18ea9c5652a4 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -451,7 +451,7 @@ void PyErr_GetExcInfo(PyObject **p_type, PyObject **p_value, PyObject **p_traceback) { PyThreadState *tstate = _PyThreadState_GET(); - return _PyErr_GetExcInfo(tstate, p_type, p_value, p_traceback); + _PyErr_GetExcInfo(tstate, p_type, p_value, p_traceback); } void