]> granicus.if.org Git - python/commitdiff
Fix warnings for PyEval_GetCoroutineWrapper
authorYury Selivanov <yselivanov@sprymix.com>
Tue, 12 May 2015 03:19:34 +0000 (23:19 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Tue, 12 May 2015 03:19:34 +0000 (23:19 -0400)
Include/ceval.h
Python/ceval.c

index d3292b8e2c7bb685389d3d3c784355f52ed78af1..7dfe2b254e91f370491ba30ecd6a615143058775 100644 (file)
@@ -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 */
index 8acd08201e53019808334e5960b4fc03e5c0b2f9..77085c25a03158be9986c96941051007a7f24be7 100644 (file)
@@ -4414,7 +4414,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper)
 }
 
 PyObject *
-PyEval_GetCoroutineWrapper()
+PyEval_GetCoroutineWrapper(void)
 {
     PyThreadState *tstate = PyThreadState_GET();
     return tstate->coroutine_wrapper;