disabled checks that generates false positives
This commit is contained in:
parent
8d116542ab
commit
e7e9402ab0
6
main.cpp
6
main.cpp
|
@ -114,14 +114,16 @@ static void CppCheck(const char FileName[])
|
||||||
CheckIfAssignment();
|
CheckIfAssignment();
|
||||||
|
|
||||||
// Check for case without break
|
// Check for case without break
|
||||||
CheckCaseWithoutBreak();
|
// Disabled because it generates many false positives
|
||||||
|
// CheckCaseWithoutBreak();
|
||||||
|
|
||||||
// Check that all class constructors are ok.
|
// Check that all class constructors are ok.
|
||||||
// Temporarily inactivated to avoid any false positives
|
// Temporarily inactivated to avoid any false positives
|
||||||
CheckConstructors();
|
CheckConstructors();
|
||||||
|
|
||||||
// Dangerous usage of strtok
|
// Dangerous usage of strtok
|
||||||
WarningStrTok();
|
// Disabled because it generates false positives
|
||||||
|
//WarningStrTok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void f()
|
|
||||||
{
|
|
||||||
|
|
||||||
switch (a)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
case 2:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
[testcasebreak\testcasebreak.cpp:9]: Found 'case' without 'break'.
|
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void f1()
|
|
||||||
{
|
|
||||||
strtok(str,"abc");
|
|
||||||
}
|
|
||||||
|
|
||||||
void f2()
|
|
||||||
{
|
|
||||||
strtok(str,"abc");
|
|
||||||
f1();
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
[testfunc5\testfunc5.cpp:12]: Possible bug. Both 'f2' and 'f1' uses strtok.
|
|
Loading…
Reference in New Issue