3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-18 06:39:03 +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;
int fanout = itrCell.second;
if (limit > 0 && (fanout > limit)) {
int nbOutputs = 0;
// int nbOutputs = 0;
for (auto &conn : cell->connections()) {
IdString portName = conn.first;
if (cell->output(portName)) {
nbOutputs++;
}
// if (cell->output(portName)) {
// nbOutputs++;
// }
}
for (auto &conn : cell->connections()) {
IdString portName = conn.first;