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 /Python | |
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 'Python')
-rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 92d08c4..65f9b7e 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(); |