diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-06-13 08:39:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 08:39:30 (GMT) |
commit | 932946ca14168e556293d2508c8eebb23a56a2b2 (patch) | |
tree | 7c027f342c09d8162f43facb2c0e9bf50e788508 /Include/pystate.h | |
parent | d0d63dc1e8a2e71c4cd6497e5ea503c702d0fe3b (diff) | |
download | cpython-932946ca14168e556293d2508c8eebb23a56a2b2.zip cpython-932946ca14168e556293d2508c8eebb23a56a2b2.tar.gz cpython-932946ca14168e556293d2508c8eebb23a56a2b2.tar.bz2 |
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();
Diffstat (limited to 'Include/pystate.h')
-rw-r--r-- | Include/pystate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 6ca463f..1838fa4 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 */ |