Skip to content

Commit

Permalink
reduce compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Oct 8, 2024
1 parent 8b40c55 commit 63ed8b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pkg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[geo]
url=git@github.com:motis-project/geo.git
branch=master
commit=66b34885c7e96e29ddb78a84ae3ab43302ed94e4
commit=5d99aeb10674a41a82d7c78f850abfd9605bf6e1
[cista]
url=git@github.com:felixguendling/cista.git
branch=master
Expand All @@ -37,7 +37,7 @@
[tiles]
url=git@github.com:motis-project/tiles.git
branch=master
commit=d513c4c5ab60abd339252eb95a3b1dc675648d8a
commit=649e1c190e63b2d0de5cbc693093355fa0476010
[mimalloc]
url=git@github.com:motis-project/mimalloc.git
branch=master
Expand Down
10 changes: 5 additions & 5 deletions include/osr/geojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ struct geojson_writer {

auto ss = std::stringstream{};
Dijkstra::profile_t::resolve_all(*w_.r_, n, level_t::invalid(),
[&](auto const n) {
auto const cost = s->get_cost(n);
[&](auto const x) {
auto const cost = s->get_cost(x);
if (cost != kInfeasible) {
ss << "{";
n.print(ss, w_);
x.print(ss, w_);
ss << ", " << cost << "}\n";
}
});
Expand Down Expand Up @@ -191,8 +191,8 @@ struct geojson_writer {

ways const& w_;
platforms const* platforms_{nullptr};
boost::json::array features_;
hash_set<node_idx_t> nodes_;
boost::json::array features_{};
hash_set<node_idx_t> nodes_{};
};

} // namespace osr

0 comments on commit 63ed8b5

Please sign in to comment.