CppCheck: Minor tweak. Do no clear internalErrorFound, instead ensure that it's not written upon suppression
This commit is contained in:
parent
523a9c1c4a
commit
0dfedd977e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue