Don't exit early if many warnings but no errors are found. [Stan Mayer]

git-svn-id: file://localhost/svn/verilator/trunk/verilator@953 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder
2007-08-23 13:21:58 +00:00
parent c4b1bc2506
commit fb2cb3c49d
4 changed files with 18 additions and 4 deletions
+2 -4
View File
@@ -190,14 +190,12 @@ string V3Error::lineStr (const char* filename, int lineno) {
void V3Error::incWarnings() {
s_warnCount++;
if (errorOrWarnCount() == MAX_ERRORS) { // Not >= as would otherwise recurse
v3fatal ("Exiting due to too many errors encountered\n");
}
// We don't exit on a lot of warnings.
}
void V3Error::incErrors() {
s_errCount++;
if (errorOrWarnCount() == MAX_ERRORS) { // Not >= as would otherwise recurse
if (errorCount() == MAX_ERRORS) { // Not >= as would otherwise recurse
v3fatal ("Exiting due to too many errors encountered\n");
}
}