Fix FP for pointer addition checker
This commit is contained in:
parent
28cfee2d4f
commit
539258f7a3
|
@ -1357,6 +1357,10 @@ void CheckCondition::checkPointerAdditionResultNotNull()
|
|||
if (!tok->isComparisonOp() || !tok->astOperand1() || !tok->astOperand2())
|
||||
continue;
|
||||
|
||||
// Macros might have pointless safety checks
|
||||
if (tok->isExpandedMacro())
|
||||
continue;
|
||||
|
||||
const Token *calcToken, *exprToken;
|
||||
if (tok->astOperand1()->str() == "+") {
|
||||
calcToken = tok->astOperand1();
|
||||
|
|
Loading…
Reference in New Issue