parent
6d6bb31926
commit
4122b2111f
|
@ -237,7 +237,7 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken,
|
||||||
std::set<unsigned int> notzero,
|
std::set<unsigned int> notzero,
|
||||||
unsigned int recursiveCount)
|
unsigned int recursiveCount)
|
||||||
{
|
{
|
||||||
if (++recursiveCount > 1000) // maximum number of "else if ()"
|
if (++recursiveCount > 1000) // maximum number of "else if ()"
|
||||||
throw InternalError(startToken, "Internal limit: CheckLeakAutoVar::checkScope() Maximum recursive count of 1000 reached.", InternalError::LIMIT);
|
throw InternalError(startToken, "Internal limit: CheckLeakAutoVar::checkScope() Maximum recursive count of 1000 reached.", InternalError::LIMIT);
|
||||||
|
|
||||||
std::map<unsigned int, VarInfo::AllocInfo> &alloctype = varInfo->alloctype;
|
std::map<unsigned int, VarInfo::AllocInfo> &alloctype = varInfo->alloctype;
|
||||||
|
|
Loading…
Reference in New Issue