Skip to content

Commit

Permalink
fix more warnings found by clang 17
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Jul 28, 2023
1 parent 956cc78 commit 6239287
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/loom/optim/OptGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,8 @@ std::vector<PartnerPath> OptGraph::getPartnerLines() const {

const auto& comps = Algorithm::connectedComponents(*this, Check(rt));

size_t nonNullComps = 0;
for (const auto& comp : comps) {
if (comp.size() < 2) continue;
nonNullComps++;
auto p = pathFromComp(comp);
if (p.partners.size() && p.path.size()) ret.push_back(p);
}
Expand Down
3 changes: 0 additions & 3 deletions src/loom/tests/TestMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,6 @@ int main(int argc, char** argv) {
optimizers.push_back(&ilpImprOptim);
optimizers.push_back(&combOptim);

size_t i = 0;

for (auto optim : optimizers) {
for (const auto& test : fileTests) {
shared::rendergraph::RenderGraph g(5, 1, 5);
Expand Down Expand Up @@ -485,7 +483,6 @@ int main(int argc, char** argv) {
continue;
}
}
i++;
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/octi/ilp/ILPGridOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ ILPSolver* ILPGridOptimizer::createProblem(BaseGraph* gg, const CombGraph& cg,
oneAssignment << "oneass(" << nd << ")";
int rowStat = lp->addRow(oneAssignment.str(), 1, shared::optim::FIX);

size_t i = 0;

for (const GridNode* n : gg->getNds()) {
if (!n->pl().isSink()) continue;

Expand Down Expand Up @@ -145,8 +143,6 @@ ILPSolver* ILPGridOptimizer::createProblem(BaseGraph* gg, const CombGraph& cg,
int col = lp->addCol(varName, shared::optim::BIN, gg->ndMovePen(nd, n));

lp->addColToRow(rowStat, col, 1);

i++;
}
}

Expand Down

0 comments on commit 6239287

Please sign in to comment.