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