Fixed race condition by properly constructing a local CheckUnusedFunctions instance in CppCheck::processFile(). Instantiating Checks is dangerous!
This commit is contained in:
parent
e94407fbce
commit
5344a5e098
|
@ -122,7 +122,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckUnusedFunctions checkUnusedFunctions;
|
CheckUnusedFunctions checkUnusedFunctions(0,0,0);
|
||||||
|
|
||||||
bool internalErrorFound(false);
|
bool internalErrorFound(false);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue