gcc: fixed compiler warning (suggest parantheses)
This commit is contained in:
parent
a1ce80806e
commit
233432a888
|
@ -293,7 +293,7 @@ void CheckStl::eraseCheckLoop(const Token *it)
|
|||
else if (Token::simpleMatch(tok, ("erase ( " + it->str() + " )").c_str()))
|
||||
{
|
||||
tok2 = tok;
|
||||
while (tok2 = tok2 ? tok2->previous() : 0)
|
||||
while (NULL != (tok2 = tok2 ? tok2->previous() : 0))
|
||||
{
|
||||
if (Token::Match(tok2, "[;{}]"))
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue