Skip to content

Commit cda5185

Browse files
fix compiler warnings
Signed-off-by: Ravi Varadarajan <[email protected]>
1 parent 983d642 commit cda5185

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/mpl2/src/hier_rtlmp.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,7 @@ void HierRTLMP::breakCluster(Cluster* parent)
10221022
}
10231023
}
10241024

1025+
//
10251026
// Merge small clusters
10261027
std::vector<Cluster*> candidate_clusters;
10271028
for (auto& cluster : parent->getChildren()) {
@@ -1170,7 +1171,6 @@ void HierRTLMP::mergeClusters(std::vector<Cluster*>& candidate_clusters)
11701171

11711172
// Then we perform Type 3 merge: merge all dust cluster
11721173
const int dust_cluster_std_cell = 10;
1173-
int dust_cluster_id = -1;
11741174
for (int i = 0; i < num_candidate_clusters; i++) {
11751175
if (cluster_class[i] == -1) { // the cluster has not been merged
11761176
new_candidate_clusters.push_back(candidate_clusters[i]);
@@ -3456,7 +3456,6 @@ void HierRTLMP::multiLevelMacroPlacement(Cluster* parent)
34563456
// access macros to maintain the connections
34573457
// *****************************************************************************************************************
34583458
if (shaped_macros[soft_macro_id_map[toString(L)]].getWidth() > 0.0) {
3459-
const float l_lx = shaped_macros[soft_macro_id_map[toString(L)]].getX();
34603459
const float l_ly = shaped_macros[soft_macro_id_map[toString(L)]].getY();
34613460
const float l_width
34623461
= shaped_macros[soft_macro_id_map[toString(L)]].getWidth();
@@ -3471,7 +3470,6 @@ void HierRTLMP::multiLevelMacroPlacement(Cluster* parent)
34713470
nullptr);
34723471
}
34733472
if (shaped_macros[soft_macro_id_map[toString(R)]].getWidth() > 0.0) {
3474-
const float r_lx = shaped_macros[soft_macro_id_map[toString(R)]].getX();
34753473
const float r_ly = shaped_macros[soft_macro_id_map[toString(R)]].getY();
34763474
const float r_width
34773475
= shaped_macros[soft_macro_id_map[toString(R)]].getWidth();
@@ -3488,7 +3486,6 @@ void HierRTLMP::multiLevelMacroPlacement(Cluster* parent)
34883486
}
34893487
if (shaped_macros[soft_macro_id_map[toString(T)]].getWidth() > 0.0) {
34903488
const float t_lx = shaped_macros[soft_macro_id_map[toString(T)]].getX();
3491-
const float t_ly = shaped_macros[soft_macro_id_map[toString(T)]].getY();
34923489
const float t_width
34933490
= shaped_macros[soft_macro_id_map[toString(T)]].getWidth();
34943491
const float t_height
@@ -3504,7 +3501,6 @@ void HierRTLMP::multiLevelMacroPlacement(Cluster* parent)
35043501
}
35053502
if (shaped_macros[soft_macro_id_map[toString(B)]].getWidth() > 0.0) {
35063503
const float b_lx = shaped_macros[soft_macro_id_map[toString(B)]].getX();
3507-
const float b_ly = shaped_macros[soft_macro_id_map[toString(B)]].getY();
35083504
const float b_width
35093505
= shaped_macros[soft_macro_id_map[toString(B)]].getWidth();
35103506
const float b_height
@@ -3779,7 +3775,6 @@ bool HierRTLMP::shapeChildrenCluster(
37793775
// check the valid values
37803776
const float outline_width = parent->getWidth();
37813777
const float outline_height = parent->getHeight();
3782-
const float outline_area = outline_width * outline_height;
37833778
float pin_access_area = 0.0;
37843779
float std_cell_cluster_area = 0.0;
37853780
float std_cell_mixed_cluster_area = 0.0;

0 commit comments

Comments
 (0)