mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
bpo-45020: Fix strict-prototypes warning (GH-29755)
This commit is contained in:
parent
abfc794bbf
commit
5c4b19ec49
@ -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) {
|
||||
|
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user