mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 07:13:53 +00:00
[traffxml] Fix compiler warnings
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -826,8 +826,9 @@ bool SegmentFromXml(pugi::xml_node const & node,
|
||||
std::map<traffic::TrafficInfo::RoadSegmentId, traffic::SpeedGroup> & coloring)
|
||||
{
|
||||
uint32_t fid;
|
||||
uint16_t idx;
|
||||
uint8_t dir;
|
||||
// initialize to get rid of compiler warnings (which are false alerts)
|
||||
uint16_t idx = 0;
|
||||
uint8_t dir = 0;
|
||||
if (IntegerFromXml(node.attribute("fid"), fid)
|
||||
&& IntegerFromXml(node.attribute("idx"), idx)
|
||||
&& IntegerFromXml(node.attribute("dir"), dir))
|
||||
|
||||
Reference in New Issue
Block a user