Skip to content

Commit

Permalink
Resolved two new compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drolbr committed Jun 22, 2021
1 parent f330443 commit 4a9cf9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/overpass_api/core/datatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ struct User_Data

struct OSM_Element_Metadata
{
OSM_Element_Metadata() : user_id(0) {}
OSM_Element_Metadata() : version(0), timestamp(0), changeset(0), user_id(0) {}

uint32 version;
uint64 timestamp;
Expand Down
2 changes: 0 additions & 2 deletions src/overpass_api/statements/id_query.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class Id_Query_Statement : public Output_Statement

virtual std::string dump_xml(const std::string& indent) const
{
std::vector< uint64 >::const_iterator it = refs.begin();

std::string result = indent + "<id-query" + std::string(" type=\"") + to_string(type) + "\"";
if (!refs.empty())
result += " ref=\"" + ::to_string(refs[0]) + "\"";
Expand Down

0 comments on commit 4a9cf9d

Please sign in to comment.