Skip to content

Commit 5ef6f79

Browse files
committed
fix dangling reference warning, also skip CBC installation on macos-11, package installation fails because of the old macos version
1 parent 94d3b37 commit 5ef6f79

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
- name: Checkout submodules
208208
run: git submodule update --init --recursive
209209
- name: install dependencies
210-
run: brew install --force --overwrite cmake && brew install --force --overwrite glpk && brew tap coin-or-tools/coinor && brew install --force --overwrite coin-or-tools/coinor/cbc
210+
run: brew install --force --overwrite cmake && brew install --force --overwrite glpk
211211
- name: cmake
212212
run: mkdir build && cd build && cmake ..
213213
- name: make

src/loom/optim/OptGraph.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ size_t OptGraph::getNumLines() const {
674674
for (auto n : getNds()) {
675675
for (auto e : n->getAdjList()) {
676676
if (e->getFrom() != n) continue;
677-
for (const auto& to : getFirstLnEdgPart(e).lnEdg->pl().getLines()) {
677+
for (auto to : getFirstLnEdgPart(e).lnEdg->pl().getLines()) {
678678
lines.insert(to.line);
679679
}
680680
}

0 commit comments

Comments
 (0)