Skip to content

Commit 527ca4b

Browse files
committed
use (void) for empty function parameters
1 parent 07b1da5 commit 527ca4b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/_webp.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
886886
PyObject *
887-
WebPDecoderVersion_wrapper() {
887+
WebPDecoderVersion_wrapper(void) {
888888
return Py_BuildValue("i", WebPGetDecoderVersion());
889889
}
890890

@@ -912,7 +912,7 @@ WebPDecoderBuggyAlpha(void) {
912912
}
913913

914914
PyObject *
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

Comments
 (0)