lib/ldb-samba: squash 'cast between incompatible function types' warning
[samba.git] / lib / ldb-samba / pyldb.c
index 397e11062b6e68188a7d0e61a0a1518009e98724..b4839785c050915ea740d6b033f80fb5620f08fe 100644 (file)
@@ -156,7 +156,8 @@ static PyObject *py_ldb_set_opaque_integer(PyObject *self, PyObject *args)
        Py_RETURN_NONE;
 }
 
-static PyObject *py_ldb_set_utf8_casefold(PyObject *self)
+static PyObject *py_ldb_set_utf8_casefold(PyObject *self,
+               PyObject *Py_UNUSED(ignored))
 {
        struct ldb_context *ldb;
 
@@ -226,7 +227,8 @@ static PyObject *py_ldb_samba_schema_attribute_add(PyLdbObject *self,
        Py_RETURN_NONE;
 }
 
-static PyObject *py_ldb_register_samba_handlers(PyObject *self)
+static PyObject *py_ldb_register_samba_handlers(PyObject *self,
+               PyObject *Py_UNUSED(ignored))
 {
        struct ldb_context *ldb;
        int ret;