From: Christian Heimes Date: Mon, 22 Jul 2013 14:34:13 +0000 (+0200) Subject: Some compilers complain about 'control reaches end of non-void function' X-Git-Tag: v3.4.0a1~107^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eb0cb12ac3a805a6966d60105a836764d08ff7b;p=thirdparty%2FPython%2Fcpython.git Some compilers complain about 'control reaches end of non-void function' because they don't understand that Py_FatalError() terminates the program. --- diff --git a/Parser/grammar1.c b/Parser/grammar1.c index 17e2ba9f926b..440ba44cb057 100644 --- a/Parser/grammar1.c +++ b/Parser/grammar1.c @@ -56,5 +56,6 @@ PyGrammar_LabelRepr(label *lb) } else { Py_FatalError("invalid label"); + return NULL; } }