lib/crypto: squash 'cast between incompatible function types' warning
authorNoel Power <noel.power@suse.com>
Thu, 2 May 2019 18:51:56 +0000 (19:51 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:17 +0000 (17:55 +0000)
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>
lib/crypto/py_crypto.c

index bf7f9f4..13e2569 100644 (file)
@@ -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;