CheckUnusedVar: Quick heuristic so we don't bailout for 'auto' variables
This commit is contained in:
parent
9ce2641704
commit
1d441f64c1
|
@ -1223,7 +1223,7 @@ void CheckUnusedVar::checkFunctionVariableUsage()
|
|||
|
||||
FwdAnalysis fwdAnalysis(mTokenizer->isCPP(), mSettings->library);
|
||||
if (fwdAnalysis.unusedValue(expr, start, scope->bodyEnd)) {
|
||||
if (!bailoutTypeName.empty()) {
|
||||
if (!bailoutTypeName.empty() && bailoutTypeName != "auto") {
|
||||
if (mSettings->checkLibrary && mSettings->isEnabled(Settings::INFORMATION)) {
|
||||
reportError(tok,
|
||||
Severity::information,
|
||||
|
|
Loading…
Reference in New Issue