summaryrefslogtreecommitdiff
path: root/Parser/grammar1.c
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
commitb69651179a1ac37b3e959a404388ce9fc1b273f8 (patch)
tree643100ef67686e6bff305740d43ad15468d855ad /Parser/grammar1.c
parentb1ad408098529bbadd56ecae29ea873d734c618a (diff)
downloadcpython-b69651179a1ac37b3e959a404388ce9fc1b273f8.tar.gz
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 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;
}
}