From d942a338b2f50f3632d7c02abdeb36e186e91999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Thu, 17 Mar 2022 14:38:56 +0100 Subject: [PATCH] Fix signature of `pkg_iterator_next_package` to prevent a warning Signature https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_iternext --- src/python/xml_parser-py.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/xml_parser-py.c b/src/python/xml_parser-py.c index 1f9d981b..b575feb7 100644 --- a/src/python/xml_parser-py.c +++ b/src/python/xml_parser-py.c @@ -859,8 +859,9 @@ pkg_iterator_dealloc(_PkgIteratorObject *self) } static PyObject * -pkg_iterator_next_package(_PkgIteratorObject *self, G_GNUC_UNUSED void *nothing) +pkg_iterator_next_package(PyObject *PyObject_self) { + _PkgIteratorObject *self = (_PkgIteratorObject *) PyObject_self; cr_Package *pkg; GError *tmp_err = NULL;