diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 11:05:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 11:05:02 (GMT) |
commit | 81524022d0c0df7a41f9b2b2df41e2ebe140e610 (patch) | |
tree | 1b8156249d1349c984770e31048f4f424e357965 /Modules/_testcapimodule.c | |
parent | 4a934d490fac779d8954a8292369c4506bab23fa (diff) | |
download | cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.zip cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.gz cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.bz2 |
bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 0dc4d7a..4715f39 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -947,7 +947,7 @@ test_buildvalue_N_error(const char *fmt) } static PyObject * -test_buildvalue_N(PyObject *self, PyObject *noargs) +test_buildvalue_N(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyObject *arg, *res; @@ -2457,7 +2457,7 @@ pending_threadfunc(PyObject *self, PyObject *arg) /* Some tests of PyUnicode_FromFormat(). This needs more tests. */ static PyObject * -test_string_from_format(PyObject *self, PyObject *args) +test_string_from_format(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyObject *result; char *msg; @@ -2597,7 +2597,7 @@ typedef struct { } known_capsule; static PyObject * -test_capsule(PyObject *self, PyObject *args) +test_capsule(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyObject *object; const char *error = NULL; @@ -2968,7 +2968,7 @@ make_memoryview_from_NULL_pointer(PyObject *self, PyObject *Py_UNUSED(ignored)) } static PyObject * -test_from_contiguous(PyObject* self, PyObject *noargs) +test_from_contiguous(PyObject* self, PyObject *Py_UNUSED(ignored)) { int data[9] = {-1,-1,-1,-1,-1,-1,-1,-1,-1}; int init[5] = {0, 1, 2, 3, 4}; @@ -3021,7 +3021,7 @@ test_from_contiguous(PyObject* self, PyObject *noargs) extern PyTypeObject _PyBytesIOBuffer_Type; static PyObject * -test_pep3118_obsolete_write_locks(PyObject* self, PyObject *noargs) +test_pep3118_obsolete_write_locks(PyObject* self, PyObject *Py_UNUSED(ignored)) { PyTypeObject *type = &_PyBytesIOBuffer_Type; PyObject *b; |