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

This commit is contained in:
Christian Heimes 2021-11-24 21:01:39 +02:00 committed by GitHub
parent abfc794bbf
commit 5c4b19ec49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1087,7 +1087,7 @@ use_frozen(void)
} }
static PyObject * static PyObject *
list_frozen_module_names() list_frozen_module_names(void)
{ {
PyObject *names = PyList_New(0); PyObject *names = PyList_New(0);
if (names == NULL) { if (names == NULL) {

View File

@ -417,7 +417,7 @@ def generate(source: str, filename: str, modname: str, file: TextIO) -> None:
printer = Printer(file) printer = Printer(file)
printer.generate("toplevel", code) printer.generate("toplevel", code)
printer.write("") printer.write("")
with printer.block("static void do_patchups()"): with printer.block("static void do_patchups(void)"):
for p in printer.patchups: for p in printer.patchups:
printer.write(p) printer.write(p)
here = os.path.dirname(__file__) here = os.path.dirname(__file__)