mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 11:26:22 +00:00
Fixed warnings found by gcc-16
This commit is contained in:
parent
e87a9bd9a7
commit
e4cbde18e1
4 changed files with 4 additions and 3 deletions
|
|
@ -275,7 +275,7 @@ struct JnyWriter
|
||||||
const auto _indent = gen_indent(indent_level);
|
const auto _indent = gen_indent(indent_level);
|
||||||
|
|
||||||
bool first_port{true};
|
bool first_port{true};
|
||||||
for (auto con : port_cell->connections()) {
|
for (auto& con : port_cell->connections()) {
|
||||||
if (!first_port)
|
if (!first_port)
|
||||||
f << ",\n";
|
f << ",\n";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -469,6 +469,7 @@ struct AbstractPass : public Pass {
|
||||||
switch (enable) {
|
switch (enable) {
|
||||||
case Enable::Always:
|
case Enable::Always:
|
||||||
log_assert(false);
|
log_assert(false);
|
||||||
|
YS_FALLTHROUGH
|
||||||
case Enable::ActiveLow:
|
case Enable::ActiveLow:
|
||||||
case Enable::ActiveHigh: {
|
case Enable::ActiveHigh: {
|
||||||
if (enable_name.empty())
|
if (enable_name.empty())
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ struct SdcObjects {
|
||||||
path += "/";
|
path += "/";
|
||||||
path += name;
|
path += name;
|
||||||
design_cells.push_back(std::make_pair(path, cell));
|
design_cells.push_back(std::make_pair(path, cell));
|
||||||
for (auto pin : cell->connections()) {
|
for (auto& pin : cell->connections()) {
|
||||||
IdString pin_name = pin.first;
|
IdString pin_name = pin.first;
|
||||||
std::string pin_name_sdc = path + "/" + pin.first.str().substr(1);
|
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)));
|
design_pins.push_back(std::make_pair(pin_name_sdc, std::make_pair(cell, pin_name)));
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ struct OptMergeThreadWorker
|
||||||
CellEqualOp> known_cells(0, CellHashOp(), CellEqualOp(*this));
|
CellEqualOp> known_cells(0, CellHashOp(), CellEqualOp(*this));
|
||||||
|
|
||||||
std::vector<DuplicateCell> duplicates;
|
std::vector<DuplicateCell> duplicates;
|
||||||
for (const std::vector<std::vector<CellHash>> &buckets : in.bucketed_cell_hashes) {
|
for (std::vector<std::vector<CellHash>> &buckets : in.bucketed_cell_hashes) {
|
||||||
// Clear out our buckets as we go. This keeps the work of deallocation
|
// Clear out our buckets as we go. This keeps the work of deallocation
|
||||||
// off the main thread.
|
// off the main thread.
|
||||||
std::vector<CellHash> bucket = std::move(buckets[index]);
|
std::vector<CellHash> bucket = std::move(buckets[index]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue