Skip to content

Commit 6371989

Browse files
authored
Merge pull request #2691 from The-OpenROAD-Project-staging/rcx-coverity
rcx: fix coverity warnings
2 parents 03d9aa3 + ed44cb7 commit 6371989

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

src/rcx/src/extFlow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,10 @@ uint extMain::couplingFlow(Rect& extRect,
16131613
_geomSeq = NULL;
16141614
}
16151615

1616+
for (uint jj = 0; jj < layerCnt; jj++)
1617+
delete[] limitArray[jj];
1618+
delete[] limitArray;
1619+
16161620
return 0;
16171621
}
16181622

src/rcx/src/extRCap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ uint extMain::printNetStats(FILE* fp,
335335
if ((type == dbSigType::POWER) || (type == dbSigType::GROUND)) {
336336
if (skipPower)
337337
continue;
338-
continue;
339338
}
340339
if (!net->isEnclosed(&bbox))
341340
continue;

src/rcx/src/extSpef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ bool extSpef::closeOutFile()
13981398
return false;
13991399

14001400
if (_gzipFlag)
1401-
fclose(_outFP);
1401+
pclose(_outFP);
14021402
else
14031403
fclose(_outFP);
14041404

src/rcx/src/extSpefIn.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,6 @@ uint extSpef::sortRSegs()
15981598
rc = _nrseg->get(tridx);
15991599
tgtCapn = rc->getTargetNode();
16001600
tgtCapNode = dbCapNode::getCapNode(_cornerBlock, tgtCapn);
1601-
zcfound = false;
16021601
srcCapn = rc->getSourceNode();
16031602
int srcCapidx
16041603
= dbCapNode::getCapNode(_cornerBlock, srcCapn)->getSortIndex() - 1;
@@ -1627,7 +1626,6 @@ uint extSpef::sortRSegs()
16271626
x1 = Ath__double2int(_nodeCoordFactor * _xCoordTable->get(ncidx));
16281627
y1 = Ath__double2int(_nodeCoordFactor * _yCoordTable->get(ncidx));
16291628
rc->setCoords(x1, y1);
1630-
zcfound = true;
16311629
} else {
16321630
logger_->warn(
16331631
RCX,

src/rcx/src/extmeasure.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,8 +3033,6 @@ void extMeasure::getDgOverlap(SEQ* sseq,
30333033
return;
30343034
}
30353035

3036-
if (_rsegSrcId > 0)
3037-
dbRSeg::getRSeg(_block, _rsegSrcId);
30383036
for (; idx < (int) dgContext->getCnt(); idx++) {
30393037
tseq = dgContext->get(idx);
30403038
if (tseq->_ur[lp] <= covered)

src/rcx/src/extmeasure_res.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,6 @@ void extMeasure::getDgOverlap_res(SEQ* sseq,
450450
return;
451451
}
452452

453-
if (_rsegSrcId > 0)
454-
dbRSeg::getRSeg(_block, _rsegSrcId);
455453
for (; idx < (int) dgContext->getCnt(); idx++) {
456454
tseq = dgContext->get(idx);
457455
if (tseq->_ur[lp] <= covered)

0 commit comments

Comments
 (0)