From 9a6559a854480f468b83b747f4978bf63de9cd04 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 15 Jan 2020 10:20:40 +0100 Subject: [PATCH] bpo-39164: Fix compiler warning in PyErr_GetExcInfo() The function has no return value. --- Python/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/errors.c b/Python/errors.c index cdb44605056a5fe..18ea9c5652a4642 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