CppCheck: Minor tweak. Do no clear internalErrorFound, instead ensure that it's not written upon suppression

This commit is contained in:
Daniel Marjamäki 2018-09-10 06:02:01 +02:00
parent 523a9c1c4a
commit 0dfedd977e
1 changed files with 2 additions and 5 deletions

View File

@ -429,7 +429,6 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
continue;
} catch (const InternalError &e) {
internalErrorFound=true;
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
ErrorLogger::ErrorMessage::FileLocation loc;
if (e.token) {
@ -451,10 +450,8 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
false);
reportErr(errmsg);
if (mSuppressInternalErrorFound) {
internalErrorFound = false;
continue;
}
if (!mSuppressInternalErrorFound)
internalErrorFound = true;
}
}