summaryrefslogtreecommitdiffstats
path: root/Parser/grammar1.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-22 14:34:13 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-22 14:34:13 (GMT)
commit1eb0cb12ac3a805a6966d60105a836764d08ff7b (patch)
tree2d47350788577fb8d9f704ce1c1db973257c07d1 /Parser/grammar1.c
parent60a60677093e2792439c9e34debe6d55feead63f (diff)
downloadcpython-1eb0cb12ac3a805a6966d60105a836764d08ff7b.zip
cpython-1eb0cb12ac3a805a6966d60105a836764d08ff7b.tar.gz
cpython-1eb0cb12ac3a805a6966d60105a836764d08ff7b.tar.bz2
Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
Diffstat (limited to 'Parser/grammar1.c')
-rw-r--r--Parser/grammar1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/grammar1.c b/Parser/grammar1.c
index 17e2ba9..440ba44 100644
--- a/Parser/grammar1.c
+++ b/Parser/grammar1.c
@@ -56,5 +56,6 @@ PyGrammar_LabelRepr(label *lb)
}
else {
Py_FatalError("invalid label");
+ return NULL;
}
}