@@ -884,7 +884,7 @@ WebPDecode_wrapper(PyObject *self, PyObject *args) {
884884// Return the decoder's version number, packed in hexadecimal using 8bits for
885885// each of major/minor/revision. E.g: v2.5.7 is 0x020507.
886886PyObject *
887- WebPDecoderVersion_wrapper () {
887+ WebPDecoderVersion_wrapper (void ) {
888888 return Py_BuildValue ("i" , WebPGetDecoderVersion ());
889889}
890890
@@ -912,7 +912,7 @@ WebPDecoderBuggyAlpha(void) {
912912}
913913
914914PyObject *
915- WebPDecoderBuggyAlpha_wrapper () {
915+ WebPDecoderBuggyAlpha_wrapper (void ) {
916916 return Py_BuildValue ("i" , WebPDecoderBuggyAlpha ());
917917}
918918
@@ -927,9 +927,12 @@ static PyMethodDef webpMethods[] = {
927927#endif
928928 {"WebPEncode" , WebPEncode_wrapper , METH_VARARGS , "WebPEncode" },
929929 {"WebPDecode" , WebPDecode_wrapper , METH_VARARGS , "WebPDecode" },
930- {"WebPDecoderVersion" , WebPDecoderVersion_wrapper , METH_NOARGS , "WebPVersion" },
930+ {"WebPDecoderVersion" ,
931+ (PyCFunction )WebPDecoderVersion_wrapper ,
932+ METH_NOARGS ,
933+ "WebPVersion" },
931934 {"WebPDecoderBuggyAlpha" ,
932- WebPDecoderBuggyAlpha_wrapper ,
935+ ( PyCFunction ) WebPDecoderBuggyAlpha_wrapper ,
933936 METH_NOARGS ,
934937 "WebPDecoderBuggyAlpha" },
935938 {NULL , NULL }};
0 commit comments