parent
0b8dcbb441
commit
7317785e32
|
@ -2914,7 +2914,7 @@ void CheckOther::checkSuspiciousStringCompare()
|
||||||
|
|
||||||
if (varTok->strAt(-1) == "+" || litTok->strAt(1) == "+")
|
if (varTok->strAt(-1) == "+" || litTok->strAt(1) == "+")
|
||||||
continue;
|
continue;
|
||||||
// rough filter for index access (#5734). Might cause false negatives in multidimensional structures
|
// rough filter for index access (#5734). Might cause false negatives in multidimensional structures
|
||||||
if (Token::simpleMatch(varTok->tokAt(1), "[") || Token::simpleMatch(litTok->tokAt(1), "["))
|
if (Token::simpleMatch(varTok->tokAt(1), "[") || Token::simpleMatch(litTok->tokAt(1), "["))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -2136,7 +2136,7 @@ private:
|
||||||
"}", true);
|
"}", true);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
#else
|
#else
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue