summaryrefslogtreecommitdiffstats
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-05 23:43:35 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-05 23:43:35 (GMT)
commita376cc5cc86c62f912886c4002ed1a9b3b213b88 (patch)
treed505b439cc8f6aac1ba75374b6652857273274c0 /Modules/parsermodule.c
parent60fca2c90fe4d00715f4ae28d68560e67955ab9b (diff)
downloadcpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.zip
cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.gz
cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.bz2
Keep gcc -Wall happy.
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index d2bc236..7a23d8d 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -566,7 +566,7 @@ parser_tuple2ast(self, args)
PyObject *tuple = 0;
PyObject *temp = 0;
int ok;
- int start_sym;
+ int start_sym = 0;
if (!PyArg_ParseTuple(args, "O:tuple2ast", &tuple))
return (0);
@@ -1829,7 +1829,7 @@ validate_comp_op(tree)
break;
}
}
- else if (res = validate_numnodes(tree, 2, "comp_op")) {
+ else if ((res = validate_numnodes(tree, 2, "comp_op")) != 0) {
res = (validate_ntype(CHILD(tree, 0), NAME)
&& validate_ntype(CHILD(tree, 1), NAME)
&& (((strcmp(STR(CHILD(tree, 0)), "is") == 0)