From: Noel Power Date: Thu, 2 May 2019 18:51:56 +0000 (+0100) Subject: lib/crypto: squash 'cast between incompatible function types' warning X-Git-Tag: tdb-1.4.1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16cf1d1a531896c7cd2fb96a72d1e630b13e012f;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andreas Schneider --- 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;