diff --git a/lib/checkother.cpp b/lib/checkother.cpp index d91e14d1d..c5bdd6ce7 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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())