[Python-checkins] cpython (merge 3.3 -> default): Some compilers complain about 'control reaches end of non-void function'
christian.heimes
python-checkins at python.org
Mon Jul 22 16:34:41 CEST 2013
http://hg.python.org/cpython/rev/84d6c1c0665e
changeset: 84788:84d6c1c0665e
parent: 84786:01597384531f
parent: 84787:b78f84bb1eeb
user: Christian Heimes <christian at cheimes.de>
date: Mon Jul 22 16:34:28 2013 +0200
summary:
Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
files:
Parser/grammar1.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Parser/grammar1.c b/Parser/grammar1.c
--- a/Parser/grammar1.c
+++ b/Parser/grammar1.c
@@ -56,5 +56,6 @@
}
else {
Py_FatalError("invalid label");
+ return NULL;
}
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list