[Python-checkins] bpo-45020: Fix strict-prototypes warning (GH-29755)

tiran webhook-mailer at python.org
Wed Nov 24 14:01:48 EST 2021


https://github.com/python/cpython/commit/5c4b19ec49a5fbad65a682225f7cfed8b78f2a2f
commit: 5c4b19ec49a5fbad65a682225f7cfed8b78f2a2f
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2021-11-24T20:01:39+01:00
summary:

bpo-45020: Fix strict-prototypes warning (GH-29755)

files:
M Python/import.c
M Tools/scripts/deepfreeze.py

diff --git a/Python/import.c b/Python/import.c
index 225fbf43a3054..51b779ca17c52 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1087,7 +1087,7 @@ use_frozen(void)
 }
 
 static PyObject *
-list_frozen_module_names()
+list_frozen_module_names(void)
 {
     PyObject *names = PyList_New(0);
     if (names == NULL) {
diff --git a/Tools/scripts/deepfreeze.py b/Tools/scripts/deepfreeze.py
index e51a408ae7f6a..46776c768e648 100644
--- a/Tools/scripts/deepfreeze.py
+++ b/Tools/scripts/deepfreeze.py
@@ -417,7 +417,7 @@ def generate(source: str, filename: str, modname: str, file: TextIO) -> None:
     printer = Printer(file)
     printer.generate("toplevel", code)
     printer.write("")
-    with printer.block("static void do_patchups()"):
+    with printer.block("static void do_patchups(void)"):
         for p in printer.patchups:
             printer.write(p)
     here = os.path.dirname(__file__)



More information about the Python-checkins mailing list