From 4d9b4304bb6a71491c538a4b1f2ddb251a71bf03 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Fri, 21 Aug 2020 11:31:08 +0300 Subject: [PATCH] [routing] Add unreachable for new version. --- routing/transit_graph.cpp | 1 + routing/transit_world_graph.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/routing/transit_graph.cpp b/routing/transit_graph.cpp index e732ceed17..9da2a00b0b 100644 --- a/routing/transit_graph.cpp +++ b/routing/transit_graph.cpp @@ -103,6 +103,7 @@ RouteWeight TransitGraph::CalcSegmentWeight(Segment const & segment, else { CHECK(false, (m_transitVersion)); + UNREACHABLE(); } return RouteWeight( diff --git a/routing/transit_world_graph.cpp b/routing/transit_world_graph.cpp index de5d39bfa2..4f54f1fa01 100644 --- a/routing/transit_world_graph.cpp +++ b/routing/transit_world_graph.cpp @@ -196,6 +196,7 @@ unique_ptr TransitWorldGraph::GetTransitInfo(Segment const & segmen else { CHECK(false, (transitGraph.GetTransitVersion())); + UNREACHABLE(); } // Fake segment between pedestrian feature and gate.