]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_decoder.c
type_decoder.c: Workaround for a compiler warning.
[libsigrokdecode.git] / type_decoder.c
index c097c7fce5b94cb950d3cb03c0fb4e52371a0df2..983400bacb0070fd07826c10c5ed397f17f36555 100644 (file)
@@ -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" },