]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010)
authorVictor Stinner <vstinner@python.org>
Wed, 15 Jan 2020 10:23:25 +0000 (11:23 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Jan 2020 10:23:25 +0000 (11:23 +0100)
The function has no return value.

Python/errors.c

index cdb44605056a5fec3e0ad0688908d4d80ea598e1..18ea9c5652a4642088f8cc9f67bf5615585e03bb 100644 (file)
@@ -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