From 1ec3175c99010252707111901bf8a01e240e1765 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Mon, 9 Nov 2015 23:10:15 +0100 Subject: [PATCH] Silence clang warning (-Wparentheses mode). --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 8b292958e..251cbe887 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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);