diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 17:34:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 17:34:35 (GMT) |
commit | d4f9cf5545d6d8844e0726552ef2e366f5cc3abd (patch) | |
tree | 7aefae9861ee6b83652f6a352397b9dc145cc0d3 /Python/context.c | |
parent | 1005c84535191a72ebb7587d8c5636a065b7ed79 (diff) | |
download | cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.zip cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.tar.gz cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.tar.bz2 |
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
Diffstat (limited to 'Python/context.c')
-rw-r--r-- | Python/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/context.c b/Python/context.c index d6ef5b3..7531f14 100644 --- a/Python/context.c +++ b/Python/context.c @@ -1141,14 +1141,14 @@ error: } static PyObject * -token_get_var(PyContextToken *self) +token_get_var(PyContextToken *self, void *Py_UNUSED(ignored)) { Py_INCREF(self->tok_var); return (PyObject *)self->tok_var; } static PyObject * -token_get_old_value(PyContextToken *self) +token_get_old_value(PyContextToken *self, void *Py_UNUSED(ignored)) { if (self->tok_oldval == NULL) { return get_token_missing(); |