Fix function signatures for PyGetSetDef callbacks

While in practice this didn't cause problems on supported platforms,
omitting the closure argument is incorrect.
This commit is contained in:
Campbell Barton
2023-07-22 11:14:31 +10:00
parent 056a7bbb5c
commit c81fffaa30
3 changed files with 32 additions and 32 deletions

View File

@@ -722,7 +722,7 @@ static PyMethodDef pygpu_shader__tp_methods[] = {
PyDoc_STRVAR(pygpu_shader_name_doc,
"The name of the shader object for debugging purposes (read-only).\n\n:type: str");
static PyObject *pygpu_shader_name(BPyGPUShader *self)
static PyObject *pygpu_shader_name(BPyGPUShader *self, void * /*closure*/)
{
return PyUnicode_FromString(GPU_shader_get_name(self->shader));
}