Skip to content

Commit

Permalink
Fix PyMethodDef warnings resolve mongodb-labs#42
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Aug 1, 2023
1 parent a3baf21 commit 6c16fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bsonjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ loads(PyObject *self, PyObject *args)
}

static PyMethodDef BsonjsClientMethods[] = {
{"dump", dump, METH_VARARGS | METH_KEYWORDS, dump__doc__},
{"dumps", dumps, METH_VARARGS | METH_KEYWORDS, dumps__doc__},
{"dump", (PyCFunction)(void(*)(void))dump, METH_VARARGS | METH_KEYWORDS, dump__doc__},
{"dumps", (PyCFunction)(void(*)(void))dumps, METH_VARARGS | METH_KEYWORDS, dumps__doc__},
{"load", load, METH_VARARGS, load__doc__},
{"loads", loads, METH_VARARGS, loads__doc__},
{NULL, NULL, 0, NULL}
Expand Down

0 comments on commit 6c16fe0

Please sign in to comment.