Skip to content

Commit

Permalink
Eliminate some 'unreferenced argument' warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Dec 10, 2015
1 parent dae8c68 commit 458f84a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/xrAICore/Navigation/data_storage_bucket_list_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ inline void CBucketList::add_opened(Vertex &vertex)
}

TEMPLATE_SPECIALIZATION
inline void CBucketList::decrease_opened(Vertex &vertex, const Distance value)
inline void CBucketList::decrease_opened(Vertex &vertex, const Distance /*value*/)
{
VERIFY(!is_opened_empty());
u32 node_bucket_id = compute_bucket_id(vertex);
Expand Down
12 changes: 6 additions & 6 deletions src/xrAICore/Navigation/vertex_path_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define CVertexPathBuilder CVertexPath<EuclidianHeuristics>::CDataStorage<TCompoundVertex>

TEMPLATE_SPECIALIZATION
inline CVertexPathBuilder::CDataStorage(const u32 vertex_count)
inline CVertexPathBuilder::CDataStorage(const u32 /*vertex_count*/)
{}

TEMPLATE_SPECIALIZATION
Expand All @@ -36,19 +36,19 @@ inline void CVertexPathBuilder::assign_parent(Vertex &neighbour, Vertex *parent,
{ assign_parent(neighbour, parent); }

TEMPLATE_SPECIALIZATION
inline void CVertexPathBuilder::update_successors(Vertex &tpNeighbour)
inline void CVertexPathBuilder::update_successors(Vertex &/*tpNeighbour*/)
{ NODEFAULT; }

TEMPLATE_SPECIALIZATION
inline void CVertexPathBuilder::get_node_path(xr_vector<Index> &path, Vertex *best)
{
Vertex *t1 = best, *t2 = best->back();
for (u32 i = 1; t2; t1 = t2, t2 = t2->back(), i++);
path.resize(i);
for (u32 i = 1; t2; t1 = t2, t2 = t2->back(), i++);
path.resize(i);
t1 = best;
path[--i] = best->index();
t2 = t1->back();
auto it = path.rbegin();
t2 = t1->back();
auto it = path.rbegin();
for (it++; t2; t2 = t2->back(), it++)
*it = t2->index();
}
Expand Down

0 comments on commit 458f84a

Please sign in to comment.