Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f487a00

Browse files
committed
Fix warnings for PyEval_GetCoroutineWrapper
1 parent 7544508 commit f487a00

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Include/ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj,
2424
PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
2525
PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
2626
PyAPI_FUNC(void) PyEval_SetCoroutineWrapper(PyObject *wrapper);
27-
PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper();
27+
PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper(void);
2828
#endif
2929

3030
struct _frame; /* Avoid including frameobject.h */

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4414,7 +4414,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper)
44144414
}
44154415

44164416
PyObject *
4417-
PyEval_GetCoroutineWrapper()
4417+
PyEval_GetCoroutineWrapper(void)
44184418
{
44194419
PyThreadState *tstate = PyThreadState_GET();
44204420
return tstate->coroutine_wrapper;

0 commit comments

Comments
 (0)