]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/ntvfs: squash 'cast between incompatible function types' warning
authorNoel Power <noel.power@suse.com>
Thu, 2 May 2019 18:34:06 +0000 (19:34 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:17 +0000 (17:55 +0000)
Fix various PyCFunction definitions to avoid
'cast between incompatible function types' warnings when compiled
with -Wcast-function-type

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/ntvfs/posix/python/pyposix_eadb.c
source4/ntvfs/posix/python/pyxattr_native.c
source4/ntvfs/posix/python/pyxattr_tdb.c

index 646498225b3960561d1b6447cc371ed349aa4b7c..ef4db0e867a20f60aefb5c867311d6ed7d2b5b90 100644 (file)
@@ -29,7 +29,8 @@
 #include "libcli/util/pyerrors.h"
 #include "param/pyparam.h"
 
-static PyObject *py_is_xattr_supported(PyObject *self)
+static PyObject *py_is_xattr_supported(PyObject *self,
+                       PyObject *Py_UNUSED(ignored))
 {
        return Py_True;
 }
index b1fa2a208e5432ff52b3183a2a11893f6fe4c00c..7d5bee0c37cb5e7539b70f172bbac372377fd2cc 100644 (file)
@@ -25,7 +25,8 @@
 #include "system/filesys.h"
 #include "lib/util/base64.h"
 
-static PyObject *py_is_xattr_supported(PyObject *self)
+static PyObject *py_is_xattr_supported(PyObject *self,
+               PyObject *Py_UNUSED(ignored))
 {
 #if !defined(HAVE_XATTR_SUPPORT)
        return Py_False;
index f9a1fa5fd80c301870126cf5502400b4f57c9171..397cae77bc98093a463ac1a10b93122c40191d24 100644 (file)
@@ -33,7 +33,8 @@
 #include "lib/dbwrap/dbwrap_tdb.h"
 #include "source3/lib/xattr_tdb.h"
 
-static PyObject *py_is_xattr_supported(PyObject *self)
+static PyObject *py_is_xattr_supported(PyObject *self,
+               PyObject *Py_UNUSED(ignored))
 {
        return Py_True;
 }