3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-05 13:51:24 +00:00

Fix unused warning in annotate_cell_fanout

This commit is contained in:
Akash Levy 2025-03-12 20:54:03 -07:00
parent e4066b784d
commit e6da1a2d69

View file

@ -613,12 +613,12 @@ struct SplitHighFanoutNets : public ScriptPass {
Cell *cell = itrCell.first; Cell *cell = itrCell.first;
int fanout = itrCell.second; int fanout = itrCell.second;
if (limit > 0 && (fanout > limit)) { if (limit > 0 && (fanout > limit)) {
int nbOutputs = 0; // int nbOutputs = 0;
for (auto &conn : cell->connections()) { for (auto &conn : cell->connections()) {
IdString portName = conn.first; IdString portName = conn.first;
if (cell->output(portName)) { // if (cell->output(portName)) {
nbOutputs++; // nbOutputs++;
} // }
} }
for (auto &conn : cell->connections()) { for (auto &conn : cell->connections()) {
IdString portName = conn.first; IdString portName = conn.first;