From 9e3ed17732bfee95dd17fbd74ad82195a992eb2f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 21 May 2020 16:40:23 +0200 Subject: type_decoder.c: Workaround for a compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit type_decoder.c:1040:16: warning: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type] 1040 | { "register", (PyCFunction)Decoder_register, METH_VARARGS|METH_KEYWORDS, | ^ --- type_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type_decoder.c') diff --git a/type_decoder.c b/type_decoder.c index c097c7f..983400b 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -1037,7 +1037,7 @@ err: static PyMethodDef Decoder_methods[] = { { "put", Decoder_put, METH_VARARGS, "Accepts a dictionary with the following keys: startsample, endsample, data" }, - { "register", (PyCFunction)Decoder_register, METH_VARARGS|METH_KEYWORDS, + { "register", (PyCFunction)(void(*)(void))Decoder_register, METH_VARARGS|METH_KEYWORDS, "Register a new output stream" }, { "wait", Decoder_wait, METH_VARARGS, "Wait for one or more conditions to occur" }, -- cgit v1.2.3-70-g09d2