Skip to content

Commit

Permalink
use (void) for empty function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Jun 28, 2024
1 parent f582f80 commit 0668aab
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/_webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ WebPDecode_wrapper(PyObject *self, PyObject *args) {
// Return the decoder's version number, packed in hexadecimal using 8bits for
// each of major/minor/revision. E.g: v2.5.7 is 0x020507.
PyObject *
WebPDecoderVersion_wrapper() {
WebPDecoderVersion_wrapper(void) {
return Py_BuildValue("i", WebPGetDecoderVersion());
}

Expand Down Expand Up @@ -912,7 +912,7 @@ WebPDecoderBuggyAlpha(void) {
}

PyObject *
WebPDecoderBuggyAlpha_wrapper() {
WebPDecoderBuggyAlpha_wrapper(void) {
return Py_BuildValue("i", WebPDecoderBuggyAlpha());
}

Expand All @@ -927,9 +927,12 @@ static PyMethodDef webpMethods[] = {
#endif
{"WebPEncode", WebPEncode_wrapper, METH_VARARGS, "WebPEncode"},
{"WebPDecode", WebPDecode_wrapper, METH_VARARGS, "WebPDecode"},
{"WebPDecoderVersion", WebPDecoderVersion_wrapper, METH_NOARGS, "WebPVersion"},
{"WebPDecoderVersion",
(PyCFunction)WebPDecoderVersion_wrapper,
METH_NOARGS,
"WebPVersion"},
{"WebPDecoderBuggyAlpha",
WebPDecoderBuggyAlpha_wrapper,
(PyCFunction)WebPDecoderBuggyAlpha_wrapper,
METH_NOARGS,
"WebPDecoderBuggyAlpha"},
{NULL, NULL}};
Expand Down

0 comments on commit 0668aab

Please sign in to comment.