temporary fix for inconclusive false warnings. there is not sufficient logic for determining when there is NOT a pointer dereference.
This commit is contained in:
parent
2dbe7ca196
commit
5f5c912f3f
|
@ -269,7 +269,11 @@ bool CheckNullPointer::isPointerDeRef(const Token *tok, bool &unknown)
|
|||
return false;
|
||||
|
||||
// unknown if it's a dereference
|
||||
unknown = true;
|
||||
// FIXME: Uncomment this. We just need to fix false positives
|
||||
// when cppcheck source code is checked before it can
|
||||
// be uncommented. We need to have better checks to
|
||||
// determine when there is NOT a pointer dereference.
|
||||
//unknown = true;
|
||||
}
|
||||
|
||||
// assume that it's not a dereference (no false positives)
|
||||
|
|
Loading…
Reference in New Issue