diff options
author | Noel Power <noel.power@suse.com> | 2019-05-02 19:51:34 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-16 17:55:17 +0000 |
commit | 70a140646e8f98662721f9e4466a6642b6180a93 (patch) | |
tree | 42b2027733b333a2b4dcd7ae05d87d3643ae51a0 /lib/ldb-samba | |
parent | 27d99eefe7676669343b9040f550480df6554a6e (diff) | |
download | samba-70a140646e8f98662721f9e4466a6642b6180a93.tar.gz |
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 <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/ldb-samba')
-rw-r--r-- | lib/ldb-samba/pyldb.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |