bpo-30604: Fix __PyCodeExtraState_Get() prototype (#2152)

Replace __PyCodeExtraState_Get() with __PyCodeExtraState_Get(void) to
fix the following GCC warning:

./Include/pystate.h:63:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 __PyCodeExtraState* __PyCodeExtraState_Get();
This commit is contained in:
Victor Stinner 2017-06-13 10:39:30 +02:00 committed by GitHub
parent d0d63dc1e8
commit 932946ca14
2 changed files with 3 additions and 3 deletions

View file

@ -571,8 +571,8 @@ PyThreadState_Swap(PyThreadState *newts)
return oldts;
}
__PyCodeExtraState*
__PyCodeExtraState_Get() {
__PyCodeExtraState*
__PyCodeExtraState_Get(void) {
PyInterpreterState* interp = PyThreadState_Get()->interp;
HEAD_LOCK();