Skip to content

Commit a39e583

Browse files
committed
Fixed #9925 (False positive: Redundant pointer operation in macro)
1 parent fe2717f commit a39e583

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/checkother.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,6 +2676,9 @@ void CheckOther::checkRedundantPointerOp()
26762676
if (!tok->isUnaryOp("&") || !tok->astOperand1()->isUnaryOp("*"))
26772677
continue;
26782678

2679+
if (tok->isExpandedMacro())
2680+
continue;
2681+
26792682
// variable
26802683
const Token *varTok = tok->astOperand1()->astOperand1();
26812684
if (!varTok || varTok->isExpandedMacro())

0 commit comments

Comments
 (0)