1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3/ntvfs: squash 'cast between incompatible function types' warning

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>
This commit is contained in:
Noel Power 2019-05-02 19:34:06 +01:00 committed by Andreas Schneider
parent 8c8fe32362
commit 0830485d1c
3 changed files with 6 additions and 3 deletions

View 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;
}

View 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;

View 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;
}