[Python-checkins] cpython: Fix warnings for PyEval_GetCoroutineWrapper
yury.selivanov
python-checkins at python.org
Tue May 12 05:20:05 CEST 2015
https://hg.python.org/cpython/rev/49270fa4c6ad
changeset: 95970:49270fa4c6ad
user: Yury Selivanov <yselivanov at sprymix.com>
date: Mon May 11 23:19:34 2015 -0400
summary:
Fix warnings for PyEval_GetCoroutineWrapper
files:
Include/ceval.h | 2 +-
Python/ceval.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Include/ceval.h b/Include/ceval.h
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -24,7 +24,7 @@
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
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4414,7 +4414,7 @@
}
PyObject *
-PyEval_GetCoroutineWrapper()
+PyEval_GetCoroutineWrapper(void)
{
PyThreadState *tstate = PyThreadState_GET();
return tstate->coroutine_wrapper;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list