Only run sizeof(char*) check if inconclusive is set

This commit is contained in:
Richard Quirk 2011-10-29 11:59:24 +02:00
parent c2d7824130
commit 45d0709ed5
1 changed files with 3 additions and 0 deletions

View File

@ -2302,6 +2302,9 @@ void CheckOther::checkAlwaysTrueOrFalseStringCompare()
tok = tok->tokAt(7); tok = tok->tokAt(7);
} }
if (!_settings->inconclusive)
return;
tok = _tokenizer->tokens(); tok = _tokenizer->tokens();
while (tok && (tok = Token::findmatch(tok, pattern3)) != NULL) { while (tok && (tok = Token::findmatch(tok, pattern3)) != NULL) {
const Token *var1 = tok->tokAt(2); const Token *var1 = tok->tokAt(2);