From aa5f8dce23fc178a3dd8e45a9d79393d29d93986 Mon Sep 17 00:00:00 2001 From: Moritz Kobitzsch Date: Thu, 15 Sep 2016 08:25:17 +0200 Subject: [PATCH] fix may be uninitialised warnings --- src/extractor/guidance/sliproad_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extractor/guidance/sliproad_handler.cpp b/src/extractor/guidance/sliproad_handler.cpp index d8f63256c..23cea1458 100644 --- a/src/extractor/guidance/sliproad_handler.cpp +++ b/src/extractor/guidance/sliproad_handler.cpp @@ -1,6 +1,6 @@ -#include "extractor/guidance/sliproad_handler.hpp" #include "extractor/guidance/constants.hpp" #include "extractor/guidance/intersection_scenario_three_way.hpp" +#include "extractor/guidance/sliproad_handler.hpp" #include "extractor/guidance/toolkit.hpp" #include "util/guidance/toolkit.hpp" @@ -84,7 +84,7 @@ operator()(const NodeID, const EdgeID source_edge_id, Intersection intersection) // a one-sided sliproad, however, the non-sliproad can be considered `obvious`. Here we // assume that this could be the case and check for a potential sliproad/non-sliproad // situation. - NodeID intersection_node_one, intersection_node_two; + NodeID intersection_node_one = SPECIAL_NODEID, intersection_node_two = SPECIAL_NODEID; const auto intersection_following_index_one = findNextIntersectionForRoad( intersection_node_id, intersection[1], intersection_node_one); const auto intersection_following_index_two = findNextIntersectionForRoad(