Skip to content

Commit 14e4e0e

Browse files
author
benjamin.peterson
committed
fix compiler warning
git-svn-id: http://svn.python.org/projects/python/trunk@66974 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 9eb9743 commit 14e4e0e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def visitModule(self, mod):
824824
return 0;
825825
}
826826
827-
static int add_ast_fields()
827+
static int add_ast_fields(void)
828828
{
829829
PyObject *empty_tuple, *d;
830830
if (PyType_Ready(&AST_type) < 0)

Python/Python-ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena)
615615
return 0;
616616
}
617617

618-
static int add_ast_fields()
618+
static int add_ast_fields(void)
619619
{
620620
PyObject *empty_tuple, *d;
621621
if (PyType_Ready(&AST_type) < 0)

0 commit comments

Comments
 (0)