From 16cf1d1a531896c7cd2fb96a72d1e630b13e012f Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 2 May 2019 19:51:56 +0100 Subject: [PATCH] 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 --- lib/crypto/py_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3