diff --git a/Include/pystate.h b/Include/pystate.h index 6ca463f7e15..1838fa40480 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -60,7 +60,7 @@ typedef struct _co_extra_state { } __PyCodeExtraState; /* This is temporary for backwards compat in 3.6 and will be removed in 3.7 */ -__PyCodeExtraState* __PyCodeExtraState_Get(); +__PyCodeExtraState* __PyCodeExtraState_Get(void); /* State unique per thread */ diff --git a/Python/pystate.c b/Python/pystate.c index 92d08c41091..65f9b7ea05d 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -571,8 +571,8 @@ PyThreadState_Swap(PyThreadState *newts) return oldts; } -__PyCodeExtraState* -__PyCodeExtraState_Get() { +__PyCodeExtraState* +__PyCodeExtraState_Get(void) { PyInterpreterState* interp = PyThreadState_Get()->interp; HEAD_LOCK();