]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Some compilers complain about 'control reaches end of non-void function'
authorChristian Heimes <christian@cheimes.de>
Mon, 22 Jul 2013 14:34:13 +0000 (16:34 +0200)
committerChristian Heimes <christian@cheimes.de>
Mon, 22 Jul 2013 14:34:13 +0000 (16:34 +0200)
because they don't understand that Py_FatalError() terminates the program.

Parser/grammar1.c

index 17e2ba9f926b8559718e9b8c944960af74bbe8fd..440ba44cb057dfbd1b2801dbbfdf298141486cfa 100644 (file)
@@ -56,5 +56,6 @@ PyGrammar_LabelRepr(label *lb)
     }
     else {
         Py_FatalError("invalid label");
+        return NULL;
     }
 }