@@ -38,7 +38,7 @@ bool has_machine_id_dupes(const uint16_t *machine_ids, int machine_ids_len) {
3838 return false;
3939}
4040
41- static PyObject * machine_id_lcg_new (PyTypeObject * type , PyObject * args , PyObject * kwargs ) {
41+ static PyObject * machine_id_lcg_new (PyTypeObject * type , PyObject * args , PyObject * Py_UNUSED ( kwargs ) ) {
4242 unsigned int seed = 0 ;
4343
4444 if (!PyArg_ParseTuple (args , "I" , & seed )) {
@@ -81,7 +81,7 @@ static PyObject *machine_id_lcg_repr(struct machine_id_lcg_state *self) {
8181 );
8282}
8383
84- static PyObject * machine_id_lcg_call (struct machine_id_lcg_state * self , PyObject * args , PyObject * kwargs ) {
84+ static PyObject * machine_id_lcg_call (struct machine_id_lcg_state * self , PyObject * Py_UNUSED ( args ) , PyObject * Py_UNUSED ( kwargs ) ) {
8585 return machine_id_lcg_next (self );
8686}
8787
@@ -100,7 +100,7 @@ PyType_Slot machine_id_lcg_slots[] = {
100100 {Py_tp_iternext , machine_id_lcg_next },
101101 {Py_tp_new , machine_id_lcg_new },
102102 {Py_tp_call , machine_id_lcg_call },
103- {Py_tp_doc , machine_id_lcg_doc },
103+ {Py_tp_doc , ( void * ) machine_id_lcg_doc },
104104 {Py_tp_repr , machine_id_lcg_repr },
105105 {0 , 0 },
106106};
0 commit comments