Skip to content

Commit 5c4b19e

Browse files
authored
bpo-45020: Fix strict-prototypes warning (GH-29755)
1 parent abfc794 commit 5c4b19e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ use_frozen(void)
10871087
}
10881088

10891089
static PyObject *
1090-
list_frozen_module_names()
1090+
list_frozen_module_names(void)
10911091
{
10921092
PyObject *names = PyList_New(0);
10931093
if (names == NULL) {

Tools/scripts/deepfreeze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def generate(source: str, filename: str, modname: str, file: TextIO) -> None:
417417
printer = Printer(file)
418418
printer.generate("toplevel", code)
419419
printer.write("")
420-
with printer.block("static void do_patchups()"):
420+
with printer.block("static void do_patchups(void)"):
421421
for p in printer.patchups:
422422
printer.write(p)
423423
here = os.path.dirname(__file__)

0 commit comments

Comments
 (0)