diff options
author | Noel Power <noel.power@suse.com> | 2019-05-02 19:51:56 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-16 17:55:17 +0000 |
commit | 16cf1d1a531896c7cd2fb96a72d1e630b13e012f (patch) | |
tree | 53f68f99d6da46e4a0600a5652306ac78fc46529 /lib/crypto | |
parent | 70a140646e8f98662721f9e4466a6642b6180a93 (diff) | |
download | samba-16cf1d1a531896c7cd2fb96a72d1e630b13e012f.tar.gz |
lib/crypto: squash 'cast between incompatible function types' warning
To avoid warning above produced by using
-Wcast-function-type we;
+ ensure PyCFunctions of type METH_VARARGS do not declare
unused and problematic kargs param.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/py_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/py_crypto.c b/lib/crypto/py_crypto.c index bf7f9f4481c..13e2569945d 100644 --- a/lib/crypto/py_crypto.c +++ b/lib/crypto/py_crypto.c @@ -23,7 +23,7 @@ #include "python/py3compat.h" #include "lib/crypto/arcfour.h" -static PyObject *py_crypto_arcfour_crypt_blob(PyObject *module, PyObject *args, PyObject *kwargs) +static PyObject *py_crypto_arcfour_crypt_blob(PyObject *module, PyObject *args) { DATA_BLOB data, key; PyObject *py_data, *py_key, *result; |