summaryrefslogtreecommitdiff
path: root/type_decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2020-05-21 16:40:23 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2020-05-21 16:43:09 +0200
commit9e3ed17732bfee95dd17fbd74ad82195a992eb2f (patch)
treeb05913811e5d29e2b085e022f10e6cae8f636fa4 /type_decoder.c
parent1bfb520c95f4bd617c804960435b3f95907bf065 (diff)
downloadlibsigrokdecode-9e3ed17732bfee95dd17fbd74ad82195a992eb2f.tar.gz
libsigrokdecode-9e3ed17732bfee95dd17fbd74ad82195a992eb2f.zip
type_decoder.c: Workaround for a compiler warning.
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, | ^
Diffstat (limited to 'type_decoder.c')
-rw-r--r--type_decoder.c2
1 files changed, 1 insertions, 1 deletions
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" },