From 8d8c03dad8e60c0fac1bb874f818d1b344d6c8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 23 Jul 2015 09:21:53 +0200 Subject: [PATCH] uninitvar: removed returns from new checking to fix 'more' tests. these returns should be readded when the executionpath checking is removed. --- lib/checkuninitvar.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index 84d57b0fc..da1f80b26 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1485,10 +1485,8 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var } // Use variable - else if (!suppressErrors && isVariableUsage(tok, var.isPointer(), *alloc)) { + else if (!suppressErrors && isVariableUsage(tok, var.isPointer(), *alloc)) uninitvarError(tok, tok->str(), *alloc); - return true; - } else // assume that variable is assigned @@ -1547,10 +1545,8 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var } else { // Use variable - if (!suppressErrors && isVariableUsage(tok, var.isPointer(), *alloc)) { + if (!suppressErrors && isVariableUsage(tok, var.isPointer(), *alloc)) uninitvarError(tok, tok->str(), *alloc); - return true; - } else { if (tok->strAt(1) == "=")