diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 1a32987cabd..391a76ded24 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -519,7 +519,7 @@ void CheckOther::checkRedundantAssignment() tokenToCheck = tempToken; } - if (start->hasKnownSymbolicValue(tokenToCheck)) { + if (start->hasKnownSymbolicValue(tokenToCheck) && !Token::simpleMatch(start->astParent(), ".")) { redundantAssignmentSameValueError(start, tokenToCheck, tok->astOperand1()->expressionString()); }