Commit c72bb4c0 authored by Tiago Peixoto's avatar Tiago Peixoto

Enable (and clear) more strict warnings during compilation

parent e0db25e0
...@@ -34,7 +34,7 @@ AC_PROG_INSTALL ...@@ -34,7 +34,7 @@ AC_PROG_INSTALL
AC_CANONICAL_TARGET AC_CANONICAL_TARGET
dnl turn on warnings dnl turn on warnings
[CXXFLAGS="-Wall -Wextra -Wno-unused-local-typedefs -Wno-unused-parameter ${CXXFLAGS}"] [CXXFLAGS="-Wall -Wextra -ftemplate-backtrace-limit=0 ${CXXFLAGS}"]
dnl Checks for options dnl Checks for options
......
...@@ -305,7 +305,6 @@ namespace detail { namespace graph { ...@@ -305,7 +305,6 @@ namespace detail { namespace graph {
ShortestPaths shortest_paths) ShortestPaths shortest_paths)
{ {
typedef typename graph_traits<Graph>::vertex_iterator vertex_iterator; typedef typename graph_traits<Graph>::vertex_iterator vertex_iterator;
typedef typename graph_traits<Graph>::edge_iterator edge_iterator;
typedef typename graph_traits<Graph>::vertex_descriptor vertex_descriptor; typedef typename graph_traits<Graph>::vertex_descriptor vertex_descriptor;
// Initialize centrality // Initialize centrality
...@@ -446,7 +445,6 @@ namespace detail { namespace graph { ...@@ -446,7 +445,6 @@ namespace detail { namespace graph {
VertexIndexMap vertex_index) VertexIndexMap vertex_index)
{ {
typedef typename graph_traits<Graph>::degree_size_type degree_size_type; typedef typename graph_traits<Graph>::degree_size_type degree_size_type;
typedef typename graph_traits<Graph>::vertex_descriptor vertex_descriptor;
typedef typename graph_traits<Graph>::edge_descriptor edge_descriptor; typedef typename graph_traits<Graph>::edge_descriptor edge_descriptor;
typedef typename mpl::if_c<(is_same<CentralityMap, typedef typename mpl::if_c<(is_same<CentralityMap,
dummy_property_map>::value), dummy_property_map>::value),
...@@ -482,7 +480,6 @@ namespace detail { namespace graph { ...@@ -482,7 +480,6 @@ namespace detail { namespace graph {
VertexIndexMap vertex_index) VertexIndexMap vertex_index)
{ {
typedef typename graph_traits<Graph>::degree_size_type degree_size_type; typedef typename graph_traits<Graph>::degree_size_type degree_size_type;
typedef typename graph_traits<Graph>::vertex_descriptor vertex_descriptor;
typedef typename graph_traits<Graph>::edge_descriptor edge_descriptor; typedef typename graph_traits<Graph>::edge_descriptor edge_descriptor;
typedef typename mpl::if_c<(is_same<CentralityMap, typedef typename mpl::if_c<(is_same<CentralityMap,
dummy_property_map>::value), dummy_property_map>::value),
......
...@@ -173,7 +173,6 @@ namespace boost ...@@ -173,7 +173,6 @@ namespace boost
// We build a custom graph in this algorithm. // We build a custom graph in this algorithm.
typedef adjacency_list <vecS, vecS, directedS, no_property, no_property > MSTImpl; typedef adjacency_list <vecS, vecS, directedS, no_property, no_property > MSTImpl;
typedef graph_traits<MSTImpl>::edge_descriptor Edge;
typedef graph_traits<MSTImpl>::vertex_descriptor Vertex; typedef graph_traits<MSTImpl>::vertex_descriptor Vertex;
typedef graph_traits<MSTImpl>::vertex_iterator VItr; typedef graph_traits<MSTImpl>::vertex_iterator VItr;
......
...@@ -212,7 +212,6 @@ namespace boost { ...@@ -212,7 +212,6 @@ namespace boost {
inline typename boost::property_traits<WeightMap>::value_type inline typename boost::property_traits<WeightMap>::value_type
stoer_wagner_min_cut(const UndirectedGraph& g, WeightMap weights, const boost::bgl_named_params<P, T, R>& params) { stoer_wagner_min_cut(const UndirectedGraph& g, WeightMap weights, const boost::bgl_named_params<P, T, R>& params) {
typedef typename boost::graph_traits<UndirectedGraph>::vertex_descriptor vertex_descriptor; typedef typename boost::graph_traits<UndirectedGraph>::vertex_descriptor vertex_descriptor;
typedef typename std::vector<vertex_descriptor>::size_type heap_container_size_type;
typedef typename boost::property_traits<WeightMap>::value_type weight_type; typedef typename boost::property_traits<WeightMap>::value_type weight_type;
typedef boost::bgl_named_params<P, T, R> params_type; typedef boost::bgl_named_params<P, T, R> params_type;
......
...@@ -121,7 +121,7 @@ struct get_closeness ...@@ -121,7 +121,7 @@ struct get_closeness
: _comp_size(comp_size) { } : _comp_size(comp_size) { }
template <class Vertex, class Graph> template <class Vertex, class Graph>
void discover_vertex(Vertex u, const Graph&) void discover_vertex(Vertex, const Graph&)
{ {
++_comp_size; ++_comp_size;
} }
......
...@@ -46,7 +46,6 @@ struct get_eigenvector ...@@ -46,7 +46,6 @@ struct get_eigenvector
CentralityMap c, double epsilon, size_t max_iter, CentralityMap c, double epsilon, size_t max_iter,
long double& eig) const long double& eig) const
{ {
typedef typename property_traits<WeightMap>::value_type c_type;
typedef typename property_traits<CentralityMap>::value_type t_type; typedef typename property_traits<CentralityMap>::value_type t_type;
CentralityMap c_temp(vertex_index, num_vertices(g)); CentralityMap c_temp(vertex_index, num_vertices(g));
......
...@@ -46,7 +46,6 @@ struct get_hits ...@@ -46,7 +46,6 @@ struct get_hits
CentralityMap x, CentralityMap y, double epsilon, CentralityMap x, CentralityMap y, double epsilon,
size_t max_iter, long double& eig) const size_t max_iter, long double& eig) const
{ {
typedef typename property_traits<WeightMap>::value_type c_type;
typedef typename property_traits<CentralityMap>::value_type t_type; typedef typename property_traits<CentralityMap>::value_type t_type;
CentralityMap x_temp(vertex_index, num_vertices(g)); CentralityMap x_temp(vertex_index, num_vertices(g));
......
...@@ -46,7 +46,6 @@ struct get_katz ...@@ -46,7 +46,6 @@ struct get_katz
CentralityMap c, PersonalizationMap beta, long double alpha, CentralityMap c, PersonalizationMap beta, long double alpha,
long double epsilon, size_t max_iter) const long double epsilon, size_t max_iter) const
{ {
typedef typename property_traits<WeightMap>::value_type c_type;
typedef typename property_traits<CentralityMap>::value_type t_type; typedef typename property_traits<CentralityMap>::value_type t_type;
CentralityMap c_temp(vertex_index, num_vertices(g)); CentralityMap c_temp(vertex_index, num_vertices(g));
......
...@@ -100,8 +100,6 @@ struct get_trust_transitivity ...@@ -100,8 +100,6 @@ struct get_trust_transitivity
int64_t target, TrustMap c, InferredTrustMap t) const int64_t target, TrustMap c, InferredTrustMap t) const
{ {
typedef typename graph_traits<Graph>::vertex_descriptor vertex_t; typedef typename graph_traits<Graph>::vertex_descriptor vertex_t;
typedef typename graph_traits<Graph>::edge_descriptor edge_t;
typedef typename property_traits<TrustMap>::value_type c_type;
typedef typename typedef typename
property_traits<InferredTrustMap>::value_type::value_type t_type; property_traits<InferredTrustMap>::value_type::value_type t_type;
......
...@@ -332,7 +332,6 @@ struct move_sweep_dispatch ...@@ -332,7 +332,6 @@ struct move_sweep_dispatch
sampler_map_t sampler = any_cast<sampler_map_t>(asampler); sampler_map_t sampler = any_cast<sampler_map_t>(asampler);
sampler_map_t cavity_sampler = any_cast<sampler_map_t>(acavity_sampler); sampler_map_t cavity_sampler = any_cast<sampler_map_t>(acavity_sampler);
ConstantPropertyMap<int, typename graph_traits<Graph>::edge_descriptor> ce(0);
ConstantPropertyMap<std::array<int, 1>, typename graph_traits<Graph>::vertex_descriptor> cv({-1}); ConstantPropertyMap<std::array<int, 1>, typename graph_traits<Graph>::vertex_descriptor> cv({-1});
IdentityArrayPropertyMap<typename graph_traits<Graph>::vertex_descriptor> vmap; IdentityArrayPropertyMap<typename graph_traits<Graph>::vertex_descriptor> vmap;
boost::typed_identity_property_map<int> identity; boost::typed_identity_property_map<int> identity;
...@@ -362,7 +361,7 @@ struct move_sweep_dispatch ...@@ -362,7 +361,7 @@ struct move_sweep_dispatch
move_sweep(states, m_entries, move_sweep(states, m_entries,
wr.get_unchecked(num_vertices(bg)), wr.get_unchecked(num_vertices(bg)),
b.get_unchecked(num_vertices(g)), b.get_unchecked(num_vertices(g)),
ce, cv, vmap, cv, vmap,
label.get_unchecked(num_vertices(bg)), vlist, deg_corr, label.get_unchecked(num_vertices(bg)), vlist, deg_corr,
dense, multigraph, beta, dense, multigraph, beta,
eweight.get_unchecked(max_edge_index), eweight.get_unchecked(max_edge_index),
...@@ -371,7 +370,7 @@ struct move_sweep_dispatch ...@@ -371,7 +370,7 @@ struct move_sweep_dispatch
nmerges, nmerges,
merge_map.get_unchecked(num_vertices(g)), merge_map.get_unchecked(num_vertices(g)),
niter, num_vertices(bg), niter, num_vertices(bg),
verbose, rng, S, nmoves, ostats); verbose, rng, S, nmoves);
} }
}; };
......
...@@ -166,7 +166,7 @@ double get_xi(NType N, EType E, double epsilon=1e-8) ...@@ -166,7 +166,7 @@ double get_xi(NType N, EType E, double epsilon=1e-8)
return 0; return 0;
double mu = 0, l = 0; double mu = 0, l = 0;
get_mu_l(N, E, mu, l); get_mu_l(N, E, mu, l, epsilon);
double S = double(N) * l + 2 * double(E) * mu; double S = double(N) * l + 2 * double(E) * mu;
return S; return S;
} }
...@@ -186,7 +186,7 @@ double get_xi_fast(NType N, EType E) ...@@ -186,7 +186,7 @@ double get_xi_fast(NType N, EType E)
// "edge" term of the entropy // "edge" term of the entropy
template <class Graph> template <class Graph>
__attribute__((always_inline)) __attribute__((always_inline))
inline double eterm(size_t r, size_t s, size_t mrs, const Graph& g) inline double eterm(size_t r, size_t s, size_t mrs, const Graph&)
{ {
if (!is_directed::apply<Graph>::type::value && r == s) if (!is_directed::apply<Graph>::type::value && r == s)
mrs *= 2; mrs *= 2;
...@@ -200,8 +200,8 @@ inline double eterm(size_t r, size_t s, size_t mrs, const Graph& g) ...@@ -200,8 +200,8 @@ inline double eterm(size_t r, size_t s, size_t mrs, const Graph& g)
} }
// "vertex" term of the entropy // "vertex" term of the entropy
template <class Graph, class Vertex> template <class Graph>
inline double vterm(Vertex v, size_t mrp, size_t mrm, size_t wr, bool deg_corr, inline double vterm(size_t mrp, size_t mrm, size_t wr, bool deg_corr,
Graph&) Graph&)
{ {
double one = 0.5; double one = 0.5;
...@@ -225,7 +225,7 @@ struct entropy ...@@ -225,7 +225,7 @@ struct entropy
for (auto e : edges_range(g)) for (auto e : edges_range(g))
S += eterm(source(e, g), target(e, g), mrs[e], g); S += eterm(source(e, g), target(e, g), mrs[e], g);
for (auto v : vertices_range(g)) for (auto v : vertices_range(g))
S += vterm(v, mrp[v], mrm[v], wr[v], deg_corr, g); S += vterm(mrp[v], mrm[v], wr[v], deg_corr, g);
} }
}; };
...@@ -233,7 +233,7 @@ struct entropy ...@@ -233,7 +233,7 @@ struct entropy
// ============== // ==============
template <class Vertex, class List, class Graph, class GetNode> template <class Vertex, class List, class Graph, class GetNode>
double get_parallel_neighbours_entropy(Vertex v, List& us, Graph& g, double get_parallel_neighbours_entropy(Vertex v, List& us, Graph&,
const GetNode& get_node) const GetNode& get_node)
{ {
double S = 0; double S = 0;
...@@ -305,7 +305,7 @@ inline double lbinom_fast(int N, int k) ...@@ -305,7 +305,7 @@ inline double lbinom_fast(int N, int k)
template <class Graph> template <class Graph>
__attribute__((always_inline)) __attribute__((always_inline))
inline double eterm_dense(size_t r, size_t s, int ers, double wr_r, inline double eterm_dense(size_t r, size_t s, int ers, double wr_r,
double wr_s, bool multigraph, const Graph& g) double wr_s, bool multigraph, const Graph&)
{ {
// we should not use integers here, since they may overflow // we should not use integers here, since they may overflow
double nrns; double nrns;
...@@ -461,7 +461,7 @@ public: ...@@ -461,7 +461,7 @@ public:
} }
template <class Graph, class OStats> template <class Graph, class OStats>
double get_delta_dl(size_t v, size_t r, size_t nr, OStats& os, Graph&) double get_delta_dl(size_t, size_t r, size_t nr, OStats&, Graph&)
{ {
if (r == nr) if (r == nr)
return 0; return 0;
...@@ -549,9 +549,8 @@ public: ...@@ -549,9 +549,8 @@ public:
} }
template <class Graph, class OStats> template <class Graph, class OStats>
void move_vertex(size_t v, size_t r, size_t nr, bool deg_corr, void move_vertex(size_t v, size_t r, size_t nr, bool deg_corr, OStats&,
OStats& overlap_stats, Graph& g, size_t kin = 0, Graph& g, size_t kin = 0, size_t kout = 0)
size_t kout = 0)
{ {
if (r == nr) if (r == nr)
return; return;
...@@ -647,7 +646,7 @@ inline __attribute__((always_inline)) ...@@ -647,7 +646,7 @@ inline __attribute__((always_inline))
pair<typename graph_traits<Graph>::edge_descriptor, bool> pair<typename graph_traits<Graph>::edge_descriptor, bool>
get_me(typename graph_traits<Graph>::vertex_descriptor r, get_me(typename graph_traits<Graph>::vertex_descriptor r,
typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor s,
const typename get_emat_t::apply<Graph>::type& emat, const Graph& g) const typename get_emat_t::apply<Graph>::type& emat, const Graph&)
{ {
return emat[r][s]; return emat[r][s];
} }
...@@ -658,7 +657,7 @@ void ...@@ -658,7 +657,7 @@ void
put_me(typename graph_traits<Graph>::vertex_descriptor r, put_me(typename graph_traits<Graph>::vertex_descriptor r,
typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor s,
const typename graph_traits<Graph>::edge_descriptor& e, const typename graph_traits<Graph>::edge_descriptor& e,
typename get_emat_t::apply<Graph>::type& emat, const Graph& g) typename get_emat_t::apply<Graph>::type& emat, const Graph&)
{ {
emat[r][s] = make_pair(e, true); emat[r][s] = make_pair(e, true);
if (!is_directed::apply<Graph>::type::value && r != s) if (!is_directed::apply<Graph>::type::value && r != s)
...@@ -670,8 +669,8 @@ inline __attribute__((always_inline)) ...@@ -670,8 +669,8 @@ inline __attribute__((always_inline))
void void
remove_me(typename graph_traits<Graph>::vertex_descriptor r, remove_me(typename graph_traits<Graph>::vertex_descriptor r,
typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor s,
const typename graph_traits<Graph>::edge_descriptor& e, const typename graph_traits<Graph>::edge_descriptor&,
typename get_emat_t::apply<Graph>::type& emat, Graph& g, typename get_emat_t::apply<Graph>::type& emat, Graph&,
bool delete_edge=true) bool delete_edge=true)
{ {
if (!delete_edge) if (!delete_edge)
...@@ -708,7 +707,7 @@ inline __attribute__((always_inline)) ...@@ -708,7 +707,7 @@ inline __attribute__((always_inline))
pair<typename graph_traits<Graph>::edge_descriptor, bool> pair<typename graph_traits<Graph>::edge_descriptor, bool>
get_me(typename graph_traits<Graph>::vertex_descriptor r, get_me(typename graph_traits<Graph>::vertex_descriptor r,
typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor s,
const typename get_ehash_t::apply<Graph>::type& ehash, const Graph& bg) const typename get_ehash_t::apply<Graph>::type& ehash, const Graph&)
{ {
assert(r < ehash.size()); assert(r < ehash.size());
const auto& map = ehash[r]; const auto& map = ehash[r];
...@@ -725,9 +724,8 @@ put_me(typename graph_traits<Graph>::vertex_descriptor r, ...@@ -725,9 +724,8 @@ put_me(typename graph_traits<Graph>::vertex_descriptor r,
typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor s,
const typename graph_traits<Graph>::edge_descriptor& e, const typename graph_traits<Graph>::edge_descriptor& e,
typename get_ehash_t::apply<Graph>::type& ehash, typename get_ehash_t::apply<Graph>::type& ehash,
const Graph& bg) const Graph&)
{ {
typedef typename graph_traits<Graph>::vertex_descriptor vertex_t;
assert(r < ehash.size()); assert(r < ehash.size());
ehash[r][s] = e; ehash[r][s] = e;
if (!is_directed::apply<Graph>::type::value) if (!is_directed::apply<Graph>::type::value)
...@@ -757,7 +755,6 @@ struct create_ehash ...@@ -757,7 +755,6 @@ struct create_ehash
void operator()(Graph& g, boost::any& oemap) const void operator()(Graph& g, boost::any& oemap) const
{ {
typedef typename get_ehash_t::apply<Graph>::type emat_t; typedef typename get_ehash_t::apply<Graph>::type emat_t;
typedef typename get_ehash_t::apply<Graph>::map_t map_t;
typedef typename graph_traits<Graph>::vertex_descriptor vertex_t; typedef typename graph_traits<Graph>::vertex_descriptor vertex_t;
emat_t emat(num_vertices(g)); emat_t emat(num_vertices(g));
...@@ -1210,7 +1207,7 @@ private: ...@@ -1210,7 +1207,7 @@ private:
struct is_loop_nop struct is_loop_nop
{ {
bool operator()(size_t u) const { return false; } bool operator()(size_t) const { return false; }
}; };
...@@ -1220,7 +1217,7 @@ template <class Graph, class BGraph, class Vertex, class Vprop, class Eprop, ...@@ -1220,7 +1217,7 @@ template <class Graph, class BGraph, class Vertex, class Vprop, class Eprop,
class MEntries, class NPolicy = standard_neighbours_policy, class MEntries, class NPolicy = standard_neighbours_policy,
class IL = is_loop_nop> class IL = is_loop_nop>
void move_entries(Vertex v, Vertex nr, Vprop& b, Eprop& eweights, Graph& g, void move_entries(Vertex v, Vertex nr, Vprop& b, Eprop& eweights, Graph& g,
BGraph& bg, MEntries& m_entries, BGraph&, MEntries& m_entries,
const NPolicy& npolicy = NPolicy(), IL is_loop = IL()) const NPolicy& npolicy = NPolicy(), IL is_loop = IL())
{ {
typedef typename graph_traits<Graph>::vertex_descriptor vertex_t; typedef typename graph_traits<Graph>::vertex_descriptor vertex_t;
...@@ -1355,10 +1352,10 @@ double virtual_move_sparse(const Vec& vs, size_t nr, Eprop& mrs, Vprop& mrp, ...@@ -1355,10 +1352,10 @@ double virtual_move_sparse(const Vec& vs, size_t nr, Eprop& mrs, Vprop& mrp,
if (!is_directed::apply<Graph>::type::value) if (!is_directed::apply<Graph>::type::value)
kin = kout; kin = kout;
dS += vterm(r, mrp[r] - kout, mrm[r] - kin, wr[r] - dwr , deg_corr, bg); dS += vterm(mrp[r] - kout, mrm[r] - kin, wr[r] - dwr , deg_corr, bg);
dS += vterm(nr, mrp[nr] + kout, mrm[nr] + kin, wr[nr] + dwnr, deg_corr, bg); dS += vterm(mrp[nr] + kout, mrm[nr] + kin, wr[nr] + dwnr, deg_corr, bg);
dS -= vterm(r, mrp[r] , mrm[r] , wr[r] , deg_corr, bg); dS -= vterm(mrp[r] , mrm[r] , wr[r] , deg_corr, bg);
dS -= vterm(nr, mrp[nr] , mrm[nr] , wr[nr] , deg_corr, bg); dS -= vterm(mrp[nr] , mrm[nr] , wr[nr] , deg_corr, bg);
return dS; return dS;
} }
...@@ -1387,8 +1384,8 @@ double virtual_move_sparse(size_t v, size_t nr, Eprop& mrs, Vprop& mrp, ...@@ -1387,8 +1384,8 @@ double virtual_move_sparse(size_t v, size_t nr, Eprop& mrs, Vprop& mrp,
template <class Graph, class BGraph, class Eprop, class Vprop, class EWprop, template <class Graph, class BGraph, class Eprop, class Vprop, class EWprop,
class VWprop, class EMat, class MEntries, class OStats, class Vec, class VWprop, class EMat, class MEntries, class OStats, class Vec,
class NPolicy = standard_neighbours_policy, class IL = is_loop_nop> class NPolicy = standard_neighbours_policy, class IL = is_loop_nop>
double virtual_move_dense(const Vec& vs, size_t nr, Eprop& mrs, Vprop& mrp, double virtual_move_dense(const Vec& vs, size_t nr, Eprop& mrs, Vprop&,
Vprop& mrm, Vprop& wr, Vprop& b, bool deg_corr, Vprop&, Vprop& wr, Vprop& b, bool deg_corr,
const EWprop& eweight, const VWprop& vweight, const EWprop& eweight, const VWprop& vweight,
Graph& g, BGraph& bg, EMat& emat, MEntries& m_entries, Graph& g, BGraph& bg, EMat& emat, MEntries& m_entries,
OStats& overlap_stats, bool multigraph, OStats& overlap_stats, bool multigraph,
...@@ -1667,7 +1664,7 @@ struct egroups_manage ...@@ -1667,7 +1664,7 @@ struct egroups_manage
template <class Eprop, class Vprop, class VEprop, class Graph, class VertexIndex, class Egroups> template <class Eprop, class Vprop, class VEprop, class Graph, class VertexIndex, class Egroups>
static void build_dispatch(Vprop b, Egroups egroups, VEprop esrcpos, static void build_dispatch(Vprop b, Egroups egroups, VEprop esrcpos,
VEprop etgtpos, Eprop eweight, Graph& g, VEprop etgtpos, Eprop eweight, Graph& g,
VertexIndex vertex_index, size_t B, mpl::true_) VertexIndex, size_t, mpl::true_)
{ {
for (auto e : edges_range(g)) for (auto e : edges_range(g))
{ {
...@@ -1684,7 +1681,7 @@ struct egroups_manage ...@@ -1684,7 +1681,7 @@ struct egroups_manage
} }
template <class Edge, class EV> template <class Edge, class EV>
static size_t insert_edge(const Edge& e, EV& elist, size_t weight) static size_t insert_edge(const Edge& e, EV& elist, size_t)
{ {
elist.push_back(e); elist.push_back(e);
return elist.size() - 1; return elist.size() - 1;
...@@ -1728,7 +1725,7 @@ struct egroups_manage ...@@ -1728,7 +1725,7 @@ struct egroups_manage
} }
template <class Vertex, class Graph, class EVprop, class Eprop, class VEprop> template <class Vertex, class Graph, class EVprop, class Eprop, class VEprop>
static void remove_egroups(Vertex v, Vertex r, Eprop& eweight, static void remove_egroups(Vertex v, Vertex r, Eprop&,
EVprop& egroups, VEprop& esrcpos, VEprop& etgtpos, EVprop& egroups, VEprop& esrcpos, VEprop& etgtpos,
Graph& g) Graph& g)
{ {
...@@ -2284,23 +2281,22 @@ double virtual_move(const Vec& vs, size_t s, Vprop& b, VLprop& cv, VVprop& vmap, ...@@ -2284,23 +2281,22 @@ double virtual_move(const Vec& vs, size_t s, Vprop& b, VLprop& cv, VVprop& vmap,
} }
template <class BlockState, class BlockMap> template <class BlockState, class BlockMap>
size_t get_block_map(const BlockState& state, const BlockMap& bmap, size_t r) size_t get_block_map(const BlockState&, const BlockMap&, size_t r)
{ {
return r; return r;
} }
template <class BlockState, class BlockMap> template <class BlockState, class BlockMap>
void remove_block_map(const BlockState& state, const BlockMap& bmap, size_t r) void remove_block_map(const BlockState&, const BlockMap&, size_t)
{ {
} }
template <class BlockState, class VLprop, class VVprop, class Vprop, template <class BlockState, class VLprop, class VVprop, class Vprop,
class OStats, class NPolicy = standard_neighbours_policy> class NPolicy = standard_neighbours_policy>
void move_vertex(size_t v, size_t s, Vprop& b, VLprop& cv, VVprop& vmap, void move_vertex(size_t v, size_t s, Vprop& b, VLprop& cv, VVprop& vmap,
Vprop& wr, Vprop& vweight, bool deg_corr, bool deg_corr, vector<BlockState>& states, bool update_egroups,
vector<BlockState>& states, bool update_egroups, const NPolicy& npolicy = NPolicy())
OStats& overlap_stats, const NPolicy& npolicy = NPolicy())
{ {
size_t r = b[v]; size_t r = b[v];
...@@ -2343,11 +2339,10 @@ void move_vertex(size_t v, size_t s, Vprop& b, VLprop& cv, VVprop& vmap, ...@@ -2343,11 +2339,10 @@ void move_vertex(size_t v, size_t s, Vprop& b, VLprop& cv, VVprop& vmap,
template <class BlockState, class VLprop, class VVprop, class Vprop, template <class BlockState, class VLprop, class VVprop, class Vprop,
class OStats, class Vec, class NPolicy = standard_neighbours_policy> class Vec, class NPolicy = standard_neighbours_policy>
void move_vertex(const Vec& vs, size_t s, Vprop& b, VLprop& cv, VVprop& vmap, void move_vertex(const Vec& vs, size_t s, Vprop& b, VLprop& cv, VVprop& vmap,
Vprop& wr, Vprop& vweight, bool deg_corr, bool deg_corr, vector<BlockState>& states, bool update_egroups,
vector<BlockState>& states, bool update_egroups, const NPolicy& npolicy = NPolicy())
OStats& overlap_stats, const NPolicy& npolicy = NPolicy())
{ {
size_t r = b[vs[0]]; size_t r = b[vs[0]];
if (s == r) if (s == r)
...@@ -2407,7 +2402,7 @@ void insert_vec(vector<Type>& v, size_t i, const Type& x) ...@@ -2407,7 +2402,7 @@ void insert_vec(vector<Type>& v, size_t i, const Type& x)
} }
template <class Type> template <class Type>
void insert_vec(const std::array<Type, 1>& v, size_t i, const Type& x) void insert_vec(const std::array<Type, 1>&, size_t, const Type&)
{ {
} }
...@@ -2418,22 +2413,21 @@ void clear_vec(vector<Type>& v) ...@@ -2418,22 +2413,21 @@ void clear_vec(vector<Type>& v)
} }