diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-12 03:19:34 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-12 03:19:34 (GMT) |
commit | f487a005d6154e041054d41dbf16bb692af36af9 (patch) | |
tree | 41c74812d45feb0ae624d6fbcdc390705a90b7f6 | |
parent | 7544508f0245173bff5866aa1598c8f6cce1fc5f (diff) | |
download | cpython-f487a005d6154e041054d41dbf16bb692af36af9.zip cpython-f487a005d6154e041054d41dbf16bb692af36af9.tar.gz cpython-f487a005d6154e041054d41dbf16bb692af36af9.tar.bz2 |
Fix warnings for PyEval_GetCoroutineWrapper
-rw-r--r-- | Include/ceval.h | 2 | ||||
-rw-r--r-- | Python/ceval.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index d3292b8..7dfe2b2 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -24,7 +24,7 @@ PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj, PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); PyAPI_FUNC(void) PyEval_SetCoroutineWrapper(PyObject *wrapper); -PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper(); +PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper(void); #endif struct _frame; /* Avoid including frameobject.h */ diff --git a/Python/ceval.c b/Python/ceval.c index 8acd082..77085c2 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4414,7 +4414,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper) } PyObject * -PyEval_GetCoroutineWrapper() +PyEval_GetCoroutineWrapper(void) { PyThreadState *tstate = PyThreadState_GET(); return tstate->coroutine_wrapper; |