From: Noel Power Date: Thu, 2 May 2019 18:51:34 +0000 (+0100) Subject: lib/ldb-samba: squash 'cast between incompatible function types' warning X-Git-Tag: tdb-1.4.1~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70a140646e8f98662721f9e4466a6642b6180a93;p=thirdparty%2Fsamba.git lib/ldb-samba: squash 'cast between incompatible function types' warning To avoid warning above produced by using -Wcast-function-type we; + ensure PyCFunctions of type METH_NOARGS defined dummy arg Signed-off-by: Noel Power Reviewed-by: Andreas Schneider --- diff --git a/lib/ldb-samba/pyldb.c b/lib/ldb-samba/pyldb.c index 397e11062b6..b4839785c05 100644 --- a/lib/ldb-samba/pyldb.c +++ b/lib/ldb-samba/pyldb.c @@ -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;