Null pointer: Removed old code for handling exit(). No testing affected.

This commit is contained in:
Daniel Marjamäki 2011-12-28 08:07:21 +01:00
parent 2d0531227f
commit 7f42300c18
1 changed files with 0 additions and 11 deletions

View File

@ -1013,17 +1013,6 @@ void CheckNullPointer::nullConstantDereference()
if (tok->str() == "(" && Token::Match(tok->previous(), "sizeof|decltype|typeid"))
tok = tok->link();
else if (Token::simpleMatch(tok, "exit ( )")) {
// Goto end of scope
while (tok && tok->str() != "}") {
if (tok->str() == "{")
tok = tok->link();
tok = tok->next();
}
if (!tok)
break;
}
else if (Token::simpleMatch(tok, "* 0")) {
if (Token::Match(tok->previous(), "return|;|{|}|=|(|,|%op%")) {
nullPointerError(tok);