[Python-checkins] bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010)
Victor Stinner
webhook-mailer at python.org
Wed Jan 15 05:23:42 EST 2020
https://github.com/python/cpython/commit/3f12ac18a407983a23d43ae785e805e773571477
commit: 3f12ac18a407983a23d43ae785e805e773571477
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2020-01-15T11:23:25+01:00
summary:
bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010)
The function has no return value.
files:
M Python/errors.c
diff --git a/Python/errors.c b/Python/errors.c
index cdb44605056a5..18ea9c5652a46 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
More information about the Python-checkins
mailing list