Merge pull request #563 from Dmitry-Me/deconvoluteCheck
Make the check slightly less convoluted
This commit is contained in:
commit
bb9848d24a
|
@ -1563,10 +1563,9 @@ bool CheckUninitVar::checkIfForWhileHead(const Token *startparentheses, const Va
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isVariableUsage(tok, var.isPointer(), alloc)) {
|
if (isVariableUsage(tok, var.isPointer(), alloc)) {
|
||||||
if (!suppressErrors)
|
if (suppressErrors)
|
||||||
uninitvarError(tok, tok->str());
|
|
||||||
else
|
|
||||||
continue;
|
continue;
|
||||||
|
uninitvarError(tok, tok->str());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue