diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-05-21 16:40:23 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-05-21 16:43:09 +0200 |
commit | 9e3ed17732bfee95dd17fbd74ad82195a992eb2f (patch) | |
tree | b05913811e5d29e2b085e022f10e6cae8f636fa4 /type_decoder.c | |
parent | 1bfb520c95f4bd617c804960435b3f95907bf065 (diff) | |
download | libsigrokdecode-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.c | 2 |
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" }, |