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:
Daniel Marjamäki 2011-12-12 07:43:33 +01:00
parent 2dbe7ca196
commit 5f5c912f3f
1 changed files with 5 additions and 1 deletions

View File

@ -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)