From 86358694fb4d81bde867fcf25f6a27d5225bce34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 26 Oct 2013 18:46:06 +0200 Subject: [PATCH] Uninitvar: Added comment to clarify that the old logic for function calls has been removed because it had FP and the 'same' checking in the new checker will be used to catch these errors instead. --- lib/checkuninitvar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index d6b348d43..6ce990249 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -479,6 +479,9 @@ private: if (tok.varId()) { // array variable passed as function parameter.. if (Token::Match(tok.previous(), "[(,] %var% [+-,)]")) { + // #4896 : This checking was removed because of FP, + // the new uninitvar checking is used instead to catch + // these errors. ExecutionPath::bailOutVar(checks, tok.varId()); return &tok; }