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;
|
continue;
|
||||||
|
|
||||||
} catch (const InternalError &e) {
|
} catch (const InternalError &e) {
|
||||||
internalErrorFound=true;
|
|
||||||
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
||||||
ErrorLogger::ErrorMessage::FileLocation loc;
|
ErrorLogger::ErrorMessage::FileLocation loc;
|
||||||
if (e.token) {
|
if (e.token) {
|
||||||
|
@ -451,10 +450,8 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
|
||||||
false);
|
false);
|
||||||
|
|
||||||
reportErr(errmsg);
|
reportErr(errmsg);
|
||||||
if (mSuppressInternalErrorFound) {
|
if (!mSuppressInternalErrorFound)
|
||||||
internalErrorFound = false;
|
internalErrorFound = true;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue