From: Benjamin Peterson Date: Sun, 19 Oct 2008 13:59:01 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: v2.7a1~2719 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aff36f129563b0693e220d0fc83fb23c7e78c583;p=thirdparty%2FPython%2Fcpython.git fix compiler warning --- diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 46688a3084f5..01597015c2bf 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -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) diff --git a/Python/Python-ast.c b/Python/Python-ast.c index cabc66639b60..4a999d12f4c8 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -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)