From: Princeton Ferro Date: Sat, 18 Jan 2020 19:03:37 +0000 (+0100) Subject: vala: Always bail if there are semantic errors X-Git-Tag: 0.47.3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=217c84bcd1f1f4884e9fda044b6af9e140f8fe94;p=thirdparty%2Fvala.git vala: Always bail if there are semantic errors Previously introduced by 1430c461d4a45026331663989113feb195588255 --- diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index 9bce9f19d..1c3ad77cd 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -520,7 +520,9 @@ public class Vala.CodeContext { analyzer.analyze (this); - if (!keep_going && report.get_errors () > 0) { + // Don't run the FlowAnalyzer if we have semantic errors, since + // the messages from FlowAnalyzer will usually be nonsensical. + if (report.get_errors () > 0) { return; }