Skip to content
Merged
Prev Previous commit
Next Next commit
suppress unused return values in Modules/_interpchannelsmodule.c
  • Loading branch information
picnixz committed Jan 25, 2025
commit ae33ded243c899c8fc006be42bc3ecf24c37ed1c
8 changes: 4 additions & 4 deletions Modules/_interpchannelsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3556,7 +3556,7 @@ module_traverse(PyObject *mod, visitproc visit, void *arg)
{
module_state *state = get_module_state(mod);
assert(state != NULL);
traverse_module_state(state, visit, arg);
(void)traverse_module_state(state, visit, arg);
return 0;
}

Expand All @@ -3567,18 +3567,18 @@ module_clear(PyObject *mod)
assert(state != NULL);

// Now we clear the module state.
clear_module_state(state);
(void)clear_module_state(state);
return 0;
}

static void
module_free(void *mod)
{
module_state *state = get_module_state(mod);
module_state *state = get_module_state((PyObject *)mod);
assert(state != NULL);

// Now we clear the module state.
clear_module_state(state);
(void)clear_module_state(state);

_globals_fini();
}
Expand Down