Silence clang warning (-Wparentheses mode).
This commit is contained in:
parent
5cd36d6f8a
commit
1ec3175c99
|
@ -550,7 +550,7 @@ void CheckOther::checkRedundantAssignment()
|
|||
varAssignments[tok->varId()] = tok;
|
||||
memAssignments.erase(tok->varId());
|
||||
eraseMemberAssignments(tok->varId(), membervars, varAssignments);
|
||||
} else if (tok->next() && tok->next()->tokType() == Token::eIncDecOp || (tok->previous()->tokType() == Token::eIncDecOp && tok->strAt(1) == ";")) { // Variable incremented/decremented; Prefix-Increment is only suspicious, if its return value is unused
|
||||
} else if ((tok->next() && tok->next()->tokType() == Token::eIncDecOp) || (tok->previous()->tokType() == Token::eIncDecOp && tok->strAt(1) == ";")) { // Variable incremented/decremented; Prefix-Increment is only suspicious, if its return value is unused
|
||||
varAssignments[tok->varId()] = tok;
|
||||
memAssignments.erase(tok->varId());
|
||||
eraseMemberAssignments(tok->varId(), membervars, varAssignments);
|
||||
|
|
Loading…
Reference in New Issue