]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103617: Fix compiler warning in _iomodule.c (#103618)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Wed, 19 Apr 2023 02:30:54 +0000 (20:30 -0600)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2023 02:30:54 +0000 (20:30 -0600)
Modules/_io/_iomodule.c

index 5644cc05c45800630bc4b4e970d53fa40be06a46..7f4f1d939fb7e9da555f22b7f6ff6cfd6a51da00 100644 (file)
@@ -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);
 }