From 3f12ac18a407983a23d43ae785e805e773571477 Mon Sep 17 00:00:00 2001
From: Victor Stinner <vstinner@python.org>
Date: Wed, 15 Jan 2020 11:23:25 +0100
Subject: bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010)

The function has no return value.
---
 Python/errors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'Python/errors.c')

diff --git a/Python/errors.c b/Python/errors.c
index cdb44605056..18ea9c5652a 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
-- 
cgit v1.2.3