fix may be uninitialised warnings

This commit is contained in:
Moritz Kobitzsch 2016-09-15 08:25:17 +02:00
parent c186e51a08
commit aa5f8dce23

View File

@ -1,6 +1,6 @@
#include "extractor/guidance/sliproad_handler.hpp"
#include "extractor/guidance/constants.hpp" #include "extractor/guidance/constants.hpp"
#include "extractor/guidance/intersection_scenario_three_way.hpp" #include "extractor/guidance/intersection_scenario_three_way.hpp"
#include "extractor/guidance/sliproad_handler.hpp"
#include "extractor/guidance/toolkit.hpp" #include "extractor/guidance/toolkit.hpp"
#include "util/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 // 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 // assume that this could be the case and check for a potential sliproad/non-sliproad
// situation. // 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( const auto intersection_following_index_one = findNextIntersectionForRoad(
intersection_node_id, intersection[1], intersection_node_one); intersection_node_id, intersection[1], intersection_node_one);
const auto intersection_following_index_two = findNextIntersectionForRoad( const auto intersection_following_index_two = findNextIntersectionForRoad(