mirror of https://github.com/python/cpython
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