Skip to content

Commit

Permalink
Update checkother.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 17, 2024
1 parent 5b1b54d commit 073eb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 073eb6e

Please sign in to comment.