From d06fde77ffdfc05b8ee219eb53a001cadd5f48f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 4 Feb 2011 20:55:38 +0100 Subject: [PATCH] Fixed #2531 (False positive: Redudant assignment to itself) --- lib/checkother.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.h b/lib/checkother.h index bc5b1db35..0ca251491 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -63,6 +63,7 @@ public: checkOther.checkRedundantAssignmentInSwitch(); checkOther.checkAssignmentInAssert(); checkOther.checkSizeofForArrayParameter(); + checkOther.checkSelfAssignment(); } /** @brief Run checks against the simplified token list */ @@ -82,7 +83,6 @@ public: checkOther.checkFflushOnInputStream(); checkOther.invalidScanf(); - checkOther.checkSelfAssignment(); checkOther.checkIncorrectLogicOperator(); checkOther.checkMisusedScopedObject(); checkOther.checkCatchExceptionByValue();