summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-04-19 02:30:54 (GMT)
committerGitHub <noreply@github.com>2023-04-19 02:30:54 (GMT)
commitffdbfe197694cb6f2509b94859ccf3534daa6fd1 (patch)
tree4ec1e33f4318bcb26d8148126dfbe9cdb88827ee /Modules
parent700ec657c80e78fb299963ffaa684c859ddb8f87 (diff)
downloadcpython-ffdbfe197694cb6f2509b94859ccf3534daa6fd1.zip
cpython-ffdbfe197694cb6f2509b94859ccf3534daa6fd1.tar.gz
cpython-ffdbfe197694cb6f2509b94859ccf3534daa6fd1.tar.bz2
gh-103617: Fix compiler warning in _iomodule.c (#103618)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_io/_iomodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c
index 5644cc0..7f4f1d9 100644
--- a/Modules/_io/_iomodule.c
+++ b/Modules/_io/_iomodule.c
@@ -616,8 +616,9 @@ iomodule_clear(PyObject *mod) {
}
static void
-iomodule_free(PyObject *mod) {
- iomodule_clear(mod);
+iomodule_free(void *mod)
+{
+ (void)iomodule_clear((PyObject *)mod);
}