Skip to content

Commit 889894a

Browse files
Merge pull request #4790 from YosysHQ/emil/clockgate-warnings
clockgate: reduce build warnings
2 parents a8a65db + 6b006e5 commit 889894a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

passes/techmap/clockgate.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,28 +106,28 @@ static std::pair<std::optional<ClockGateCell>, std::optional<ClockGateCell>>
106106
if (pin->id != "pin" || pin->args.size() != 1)
107107
continue;
108108

109-
if (auto clk = pin->find("clock_gate_clock_pin")) {
109+
if (pin->find("clock_gate_clock_pin")) {
110110
if (!icg_interface.clk_in_pin.empty()) {
111111
log_warning("Malformed liberty file - multiple clock_gate_clock_pin in cell %s\n",
112112
cell_name.c_str());
113113
continue;
114114
} else
115115
icg_interface.clk_in_pin = RTLIL::escape_id(pin->args[0]);
116-
} else if (auto gclk = pin->find("clock_gate_out_pin")) {
116+
} else if (pin->find("clock_gate_out_pin")) {
117117
if (!icg_interface.clk_out_pin.empty()) {
118118
log_warning("Malformed liberty file - multiple clock_gate_out_pin in cell %s\n",
119119
cell_name.c_str());
120120
continue;
121121
} else
122122
icg_interface.clk_out_pin = RTLIL::escape_id(pin->args[0]);
123-
} else if (auto en = pin->find("clock_gate_enable_pin")) {
123+
} else if (pin->find("clock_gate_enable_pin")) {
124124
if (!icg_interface.ce_pin.empty()) {
125125
log_warning("Malformed liberty file - multiple clock_gate_enable_pin in cell %s\n",
126126
cell_name.c_str());
127127
continue;
128128
} else
129129
icg_interface.ce_pin = RTLIL::escape_id(pin->args[0]);
130-
} else if (auto se = pin->find("clock_gate_test_pin")) {
130+
} else if (pin->find("clock_gate_test_pin")) {
131131
icg_interface.tie_lo_pins.push_back(RTLIL::escape_id(pin->args[0]));
132132
} else {
133133
const LibertyAst *dir = pin->find("direction");

0 commit comments

Comments
 (0)