mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
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:
parent
d0d63dc1e8
commit
932946ca14
2 changed files with 3 additions and 3 deletions
|
@ -571,8 +571,8 @@ PyThreadState_Swap(PyThreadState *newts)
|
|||
return oldts;
|
||||
}
|
||||
|
||||
__PyCodeExtraState*
|
||||
__PyCodeExtraState_Get() {
|
||||
__PyCodeExtraState*
|
||||
__PyCodeExtraState_Get(void) {
|
||||
PyInterpreterState* interp = PyThreadState_Get()->interp;
|
||||
|
||||
HEAD_LOCK();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue