}
/* enable null tracking */
-static PyObject *pytalloc_enable_null_tracking(PyObject *self)
+static PyObject *pytalloc_enable_null_tracking(PyObject *self,
+ PyObject *Py_UNUSED(ignored))
{
talloc_enable_null_tracking();
return Py_None;
#include <talloc.h>
#include <pytalloc.h>
-static PyObject *testpytalloc_new(PyTypeObject *mod)
+static PyObject *testpytalloc_new(PyTypeObject *mod,
+ PyObject *Py_UNUSED(ignored))
{
char *obj = talloc_strdup(NULL, "This is a test string");;
return pytalloc_steal(pytalloc_GetObjectType(), obj);
}
-static PyObject *testpytalloc_get_object_type(PyObject *mod) {
+static PyObject *testpytalloc_get_object_type(PyObject *mod,
+ PyObject *Py_UNUSED(ignored))
+{
PyObject *type = (PyObject *)pytalloc_GetObjectType();
Py_INCREF(type);
return type;
}
-static PyObject *testpytalloc_base_new(PyTypeObject *mod)
+static PyObject *testpytalloc_base_new(PyTypeObject *mod,
+ PyObject *Py_UNUSED(ignored))
{
char *obj = talloc_strdup(NULL, "This is a test string for a BaseObject");;
return pytalloc_steal(pytalloc_GetBaseObjectType(), obj);
}
-static PyObject *testpytalloc_base_get_object_type(PyObject *mod) {
+static PyObject *testpytalloc_base_get_object_type(PyObject *mod,
+ PyObject *Py_UNUSED(ignored))
+{
PyObject *type = (PyObject *)pytalloc_GetBaseObjectType();
Py_INCREF(type);
return type;