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 Apr 28, 2024
1 parent 8b8679c commit 6e1eaea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/_webp.c
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,9 @@ 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 6e1eaea

Please sign in to comment.