Fixed #9925 (False positive: Redundant pointer operation in macro)

This commit is contained in:
Daniel Marjamäki 2020-09-29 18:27:07 +02:00
parent fe2717fa37
commit a39e5835d4
1 changed files with 3 additions and 0 deletions

View File

@ -2676,6 +2676,9 @@ void CheckOther::checkRedundantPointerOp()
if (!tok->isUnaryOp("&") || !tok->astOperand1()->isUnaryOp("*"))
continue;
if (tok->isExpandedMacro())
continue;
// variable
const Token *varTok = tok->astOperand1()->astOperand1();
if (!varTok || varTok->isExpandedMacro())