From 63ed8b51ba296b2e7666881175329286d16d71db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Tue, 8 Oct 2024 22:33:47 +0200 Subject: [PATCH] reduce compiler warnings --- .pkg | 4 ++-- include/osr/geojson.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pkg b/.pkg index 5d533db..c281097 100644 --- a/.pkg +++ b/.pkg @@ -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 @@ -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 diff --git a/include/osr/geojson.h b/include/osr/geojson.h index 92456df..5a8c587 100644 --- a/include/osr/geojson.h +++ b/include/osr/geojson.h @@ -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"; } }); @@ -191,8 +191,8 @@ struct geojson_writer { ways const& w_; platforms const* platforms_{nullptr}; - boost::json::array features_; - hash_set nodes_; + boost::json::array features_{}; + hash_set nodes_{}; }; } // namespace osr \ No newline at end of file