]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix compiler warning
authorBenjamin Peterson <benjamin@python.org>
Sun, 19 Oct 2008 13:59:01 +0000 (13:59 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 19 Oct 2008 13:59:01 +0000 (13:59 +0000)
Parser/asdl_c.py
Python/Python-ast.c

index 46688a3084f59e5427cb0747c9daaccee68e233d..01597015c2bf76656c1882dcc8a8edda63dc2ac2 100755 (executable)
@@ -824,7 +824,7 @@ static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena)
     return 0;
 }
 
-static int add_ast_fields()
+static int add_ast_fields(void)
 {
     PyObject *empty_tuple, *d;
     if (PyType_Ready(&AST_type) < 0)
index cabc66639b60eab8b2d796f9a7942ab464ebcc14..4a999d12f4c81818b8f8e1d8a06befdd1f7149c0 100644 (file)
@@ -615,7 +615,7 @@ static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena)
     return 0;
 }
 
-static int add_ast_fields()
+static int add_ast_fields(void)
 {
     PyObject *empty_tuple, *d;
     if (PyType_Ready(&AST_type) < 0)