mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Adjustments to get rid of some compiler warnings
This commit is contained in:
parent
22769f2234
commit
41d0be6b95
31 changed files with 317 additions and 326 deletions
|
@ -523,23 +523,23 @@ int4 HighVariable::markExpression(Varnode *vn,vector<HighVariable *> &highList)
|
|||
path.pop_back();
|
||||
continue;
|
||||
}
|
||||
Varnode *vn = node.op->getIn(node.slot);
|
||||
Varnode *curVn = node.op->getIn(node.slot);
|
||||
node.slot += 1;
|
||||
if (vn->isAnnotation()) continue;
|
||||
if (vn->isExplicit()) {
|
||||
high = vn->getHigh();
|
||||
if (curVn->isAnnotation()) continue;
|
||||
if (curVn->isExplicit()) {
|
||||
high = curVn->getHigh();
|
||||
if (high->isMark()) continue; // Already in the list
|
||||
high->setMark();
|
||||
highList.push_back(high);
|
||||
continue; // Truncate at explicit
|
||||
}
|
||||
if (!vn->isWritten()) continue;
|
||||
op = vn->getDef();
|
||||
if (!curVn->isWritten()) continue;
|
||||
op = curVn->getDef();
|
||||
if (op->isCall())
|
||||
retVal |= 1;
|
||||
if (op->code() == CPUI_LOAD)
|
||||
retVal |= 2;
|
||||
path.push_back(PcodeOpNode(vn->getDef(),0));
|
||||
path.push_back(PcodeOpNode(curVn->getDef(),0));
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue