disabled checks that generates false positives

This commit is contained in:
Daniel Marjamäki 2007-10-22 06:59:28 +00:00
parent 8d116542ab
commit e7e9402ab0
7 changed files with 4 additions and 30 deletions

View File

@ -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();
}

View File

View File

@ -1,13 +0,0 @@
void f()
{
switch (a)
{
case 1:
case 2:
break;
}
}

View File

@ -1 +0,0 @@
[testcasebreak\testcasebreak.cpp:9]: Found 'case' without 'break'.

View File

View File

@ -1,13 +0,0 @@
void f1()
{
strtok(str,"abc");
}
void f2()
{
strtok(str,"abc");
f1();
}

View File

@ -1 +0,0 @@
[testfunc5\testfunc5.cpp:12]: Possible bug. Both 'f2' and 'f1' uses strtok.