diff options
-rw-r--r-- | map/routing_manager.cpp | 1 | ||||
-rw-r--r-- | routing/world_graph.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index f8d5653355..579cfe04b8 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -241,6 +241,7 @@ RoutingManager::RoutingManager(Callbacks && callbacks, Delegate & delegate) m_routingSession.Init(routingStatisticsFn, [this](m2::PointD const & pt) { + UNUSED_VALUE(this); #ifdef SHOW_ROUTE_DEBUG_MARKS if (m_bmManager == nullptr) return; diff --git a/routing/world_graph.cpp b/routing/world_graph.cpp index 3f87783131..1031b5fe94 100644 --- a/routing/world_graph.cpp +++ b/routing/world_graph.cpp @@ -17,9 +17,9 @@ void WorldGraph::GetTwins(Segment const & segment, bool isOutgoing, vector<Segme // We need both enter to mwm and exit from mwm in LeapsOnly mode to reconstruct leap. // That's why we need to duplicate twin segment here and than remove duplicate // while processing leaps. + m2::PointD const & from = GetPoint(segment, isOutgoing /* front */); for (Segment const & twin : twins) { - m2::PointD const & from = GetPoint(segment, isOutgoing /* front */); m2::PointD const & to = GetPoint(twin, isOutgoing /* front */); // Weight is usually zero because twins correspond the same feature // in different mwms. But if we have mwms with different versions and a feature |