Fix a couple of warnings found by PVS Studio (#6372)
This commit is contained in:
committed by
GitHub
parent
9b834810d5
commit
be353630d5
@@ -135,7 +135,8 @@ struct NodeBasedEdgeWithOSM : NodeBasedEdge
|
||||
|
||||
inline NodeBasedEdgeClassification::NodeBasedEdgeClassification()
|
||||
: forward(false), backward(false), is_split(false), roundabout(false), circular(false),
|
||||
startpoint(false), restricted(false)
|
||||
startpoint(false), restricted(false), highway_turn_classification(0),
|
||||
access_turn_classification(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ struct TurnRestriction
|
||||
// The turn sequence that the restriction applies to.
|
||||
TurnPath turn_path;
|
||||
// Indicates if the restriction turn *must* or *must not* be taken.
|
||||
bool is_only;
|
||||
bool is_only = false;
|
||||
// We represent conditional and unconditional restrictions with the same structure.
|
||||
// Unconditional restrictions will have empty conditions.
|
||||
std::vector<util::OpeningHours> condition;
|
||||
|
||||
@@ -38,17 +38,17 @@ struct LuaScriptingContext final
|
||||
RasterContainer raster_sources;
|
||||
sol::state state;
|
||||
|
||||
bool has_turn_penalty_function;
|
||||
bool has_node_function;
|
||||
bool has_way_function;
|
||||
bool has_segment_function;
|
||||
bool has_turn_penalty_function = false;
|
||||
bool has_node_function = false;
|
||||
bool has_way_function = false;
|
||||
bool has_segment_function = false;
|
||||
|
||||
sol::function turn_function;
|
||||
sol::function way_function;
|
||||
sol::function node_function;
|
||||
sol::function segment_function;
|
||||
|
||||
int api_version;
|
||||
int api_version = 4;
|
||||
sol::table profile_table;
|
||||
|
||||
// Reference to immutable location dependent data and locations memo
|
||||
|
||||
Reference in New Issue
Block a user