From 7f42300c189088641f8c2ca727e8f9cea8fc1bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 28 Dec 2011 08:07:21 +0100 Subject: [PATCH] Null pointer: Removed old code for handling exit(). No testing affected. --- lib/checknullpointer.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/checknullpointer.cpp b/lib/checknullpointer.cpp index 052fd4d4f..c64f97c8b 100644 --- a/lib/checknullpointer.cpp +++ b/lib/checknullpointer.cpp @@ -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);