mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-10 15:36:44 +00:00
Remove unused variables
This fixes -Wunused-but-set-variable with FreeBSD's clang17.
This commit is contained in:
@@ -152,13 +152,10 @@ json_spirit::Value BuildJSONNode(AtNode::Ptr p)
|
||||
AtNode::child_maptype::const_iterator lower = p->m_Children.lower_bound("item");
|
||||
AtNode::child_maptype::const_iterator upper = p->m_Children.upper_bound("item");
|
||||
|
||||
unsigned int idx = 0;
|
||||
for (AtNode::child_maptype::const_iterator it = lower; it != upper; ++it)
|
||||
{
|
||||
json_spirit::Value child = BuildJSONNode(it->second);
|
||||
rval.push_back(child);
|
||||
|
||||
++idx;
|
||||
}
|
||||
|
||||
return rval;
|
||||
|
||||
Reference in New Issue
Block a user