From e7e9402ab0ba1d8d5b52271be53dc71213ec81d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 22 Oct 2007 06:59:28 +0000 Subject: [PATCH] disabled checks that generates false positives --- main.cpp | 6 ++++-- testcasebreak/err.msg | 0 testcasebreak/testcasebreak.cpp | 13 ------------- testcasebreak/warn.msg | 1 - testfunc5/err.msg | 0 testfunc5/testfunc5.cpp | 13 ------------- testfunc5/warn.msg | 1 - 7 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 testcasebreak/err.msg delete mode 100644 testcasebreak/testcasebreak.cpp delete mode 100644 testcasebreak/warn.msg delete mode 100644 testfunc5/err.msg delete mode 100644 testfunc5/testfunc5.cpp delete mode 100644 testfunc5/warn.msg diff --git a/main.cpp b/main.cpp index ab6520fe9..5775a0501 100644 --- a/main.cpp +++ b/main.cpp @@ -114,14 +114,16 @@ static void CppCheck(const char FileName[]) CheckIfAssignment(); // Check for case without break - CheckCaseWithoutBreak(); + // Disabled because it generates many false positives + // CheckCaseWithoutBreak(); // Check that all class constructors are ok. // Temporarily inactivated to avoid any false positives CheckConstructors(); // Dangerous usage of strtok - WarningStrTok(); + // Disabled because it generates false positives + //WarningStrTok(); } diff --git a/testcasebreak/err.msg b/testcasebreak/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testcasebreak/testcasebreak.cpp b/testcasebreak/testcasebreak.cpp deleted file mode 100644 index e7b60e09f..000000000 --- a/testcasebreak/testcasebreak.cpp +++ /dev/null @@ -1,13 +0,0 @@ - - - -void f() -{ - - switch (a) - { - case 1: - case 2: - break; - } -} \ No newline at end of file diff --git a/testcasebreak/warn.msg b/testcasebreak/warn.msg deleted file mode 100644 index f4d9dd0c4..000000000 --- a/testcasebreak/warn.msg +++ /dev/null @@ -1 +0,0 @@ -[testcasebreak\testcasebreak.cpp:9]: Found 'case' without 'break'. diff --git a/testfunc5/err.msg b/testfunc5/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testfunc5/testfunc5.cpp b/testfunc5/testfunc5.cpp deleted file mode 100644 index c566a7900..000000000 --- a/testfunc5/testfunc5.cpp +++ /dev/null @@ -1,13 +0,0 @@ - - - -void f1() -{ - strtok(str,"abc"); -} - -void f2() -{ - strtok(str,"abc"); - f1(); -} \ No newline at end of file diff --git a/testfunc5/warn.msg b/testfunc5/warn.msg deleted file mode 100644 index ca8eb5ddd..000000000 --- a/testfunc5/warn.msg +++ /dev/null @@ -1 +0,0 @@ -[testfunc5\testfunc5.cpp:12]: Possible bug. Both 'f2' and 'f1' uses strtok.