diff options
author | Noel Power <noel.power@suse.com> | 2019-05-02 19:40:23 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-16 17:55:17 +0000 |
commit | cea41645fb463b026bb7161b524ba732ba0d14e3 (patch) | |
tree | 948b8dfe5932a99a1801eb62101874d32440712e /source3/param | |
parent | cc60866990212236c4184dc1dc8ce3194a7e1869 (diff) | |
download | samba-cea41645fb463b026bb7161b524ba732ba0d14e3.tar.gz |
s3: squash 'cast between incompatible function types' warning
Some functions (e.g. py_smb_savefile) have an extra unecessary
*kwargs param in their signatures, these definitions are
causing 'cast between incompatible function types' warnings when
compiled with -Wcast-function-type. Some other functions have
the *kwargs which causes "cast between incompatible function types'
warnings which need to be squashed with use of the
PY_DISCARD_FUNC_SIG macro.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/pyparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/pyparam.c b/source3/param/pyparam.c index 4f80a0ef864..6f709afe96e 100644 --- a/source3/param/pyparam.c +++ b/source3/param/pyparam.c @@ -28,7 +28,7 @@ static PyTypeObject *loadparm_Type = NULL; void initparam(void); -static PyObject *py_get_context(PyObject *self) +static PyObject *py_get_context(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyObject *py_loadparm; const struct loadparm_s3_helpers *s3_context; |