From 4e58fafce31914f554a54781273edee2133ade9f Mon Sep 17 00:00:00 2001 From: Vlad Vesa Date: Wed, 19 Aug 2020 11:56:54 +0300 Subject: [PATCH] chore: more clang warnings fixes --- src/pfaedle/osm/Osm.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pfaedle/osm/Osm.h b/src/pfaedle/osm/Osm.h index 18a510f..07393ed 100644 --- a/src/pfaedle/osm/Osm.h +++ b/src/pfaedle/osm/Osm.h @@ -21,7 +21,9 @@ typedef std::pair Attr; typedef std::vector OsmIdList; struct OsmRel { - OsmRel() : id(0) {} + OsmRel() : id(0), + keepFlags(0), + dropFlags(0) {} osmid id; AttrMap attrs; std::vector nodes; @@ -35,7 +37,9 @@ struct OsmRel { }; struct OsmWay { - OsmWay() : id(0) {} + OsmWay() : id(0), + keepFlags(0), + dropFlags(0) {} osmid id; AttrMap attrs; std::vector nodes; @@ -45,7 +49,11 @@ struct OsmWay { }; struct OsmNode { - OsmNode() : id(0) {} + OsmNode() : id(0), + lat(0.f), + lng(0.f), + keepFlags(0), + dropFlags(0) {} osmid id; double lat; double lng;