gcc: fixed compiler warning (suggest parantheses around assignment)

This commit is contained in:
Daniel Marjamäki 2010-12-31 14:18:24 +01:00
parent 3de9d9cb31
commit 1a8c410c06
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void CheckNullPointer::nullPointerAfterLoop()
const Token *tok2 = tok->tokAt(4)->link();
// 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
if (tok2->str() == "{" || tok2->str() == "}" || tok2->str() == "break")