updated comment. removed a inconclusive condition, I don't think it's needed.
This commit is contained in:
parent
ad40586e96
commit
f04210ad9f
|
@ -425,8 +425,8 @@ void CheckOther::checkSizeofForStrncmpSize()
|
|||
const char pattern1[] = "strncmp ( %any% , %any% , sizeof ( %var% ) )";
|
||||
const char pattern2[] = "strncmp ( %any% , %any% , sizeof %var% )";
|
||||
|
||||
// this check is inconclusive - it might be intentional to use
|
||||
// sizeof(char *) as parameter
|
||||
// danmar : this is inconclusive in case the size parameter is
|
||||
// sizeof(char *) by intention.
|
||||
if (!_settings->inconclusive)
|
||||
return;
|
||||
|
||||
|
@ -2306,9 +2306,6 @@ void CheckOther::checkAlwaysTrueOrFalseStringCompare()
|
|||
tok = tok->tokAt(7);
|
||||
}
|
||||
|
||||
if (!_settings->inconclusive)
|
||||
return;
|
||||
|
||||
tok = _tokenizer->tokens();
|
||||
while (tok && (tok = Token::findmatch(tok, pattern3)) != NULL) {
|
||||
const Token *var1 = tok->tokAt(2);
|
||||
|
|
Loading…
Reference in New Issue