3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-28 12:56:30 +00:00

Fixed warnings found by gcc-16

This commit is contained in:
Miodrag Milanovic 2026-05-18 09:44:57 +02:00
parent e87a9bd9a7
commit e4cbde18e1
4 changed files with 4 additions and 3 deletions

View file

@ -469,6 +469,7 @@ struct AbstractPass : public Pass {
switch (enable) {
case Enable::Always:
log_assert(false);
YS_FALLTHROUGH
case Enable::ActiveLow:
case Enable::ActiveHigh: {
if (enable_name.empty())

View file

@ -148,7 +148,7 @@ struct SdcObjects {
path += "/";
path += name;
design_cells.push_back(std::make_pair(path, cell));
for (auto pin : cell->connections()) {
for (auto& pin : cell->connections()) {
IdString pin_name = pin.first;
std::string pin_name_sdc = path + "/" + pin.first.str().substr(1);
design_pins.push_back(std::make_pair(pin_name_sdc, std::make_pair(cell, pin_name)));