gcc: fixed compiler warning (suggest parantheses around assignment)
This commit is contained in:
parent
3de9d9cb31
commit
1a8c410c06
|
@ -171,7 +171,7 @@ void CheckNullPointer::nullPointerAfterLoop()
|
||||||
const Token *tok2 = tok->tokAt(4)->link();
|
const Token *tok2 = tok->tokAt(4)->link();
|
||||||
|
|
||||||
// Check if the variable is dereferenced after the while loop
|
// Check if the variable is dereferenced after the while loop
|
||||||
while (tok2 = tok2 ? tok2->next() : 0)
|
while (0 != (tok2 = tok2 ? tok2->next() : 0))
|
||||||
{
|
{
|
||||||
// Don't check into inner scopes or outer scopes. Stop checking if "break" is found
|
// Don't check into inner scopes or outer scopes. Stop checking if "break" is found
|
||||||
if (tok2->str() == "{" || tok2->str() == "}" || tok2->str() == "break")
|
if (tok2->str() == "{" || tok2->str() == "}" || tok2->str() == "break")
|
||||||
|
|
Loading…
Reference in New Issue