Skip to content

Commit 602b715

Browse files
committed
Default-initialize the edge view to avoid warnings.
1 parent e3e4ed6 commit 602b715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/scran_graph_cluster/edges_to_graph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace scran_graph_cluster {
2929
template<typename Vertex_>
3030
raiigraph::Graph edges_to_graph(size_t double_edges, const Vertex_* edges, size_t num_vertices, igraph_bool_t directed) {
3131
if constexpr(std::is_same<Vertex_, igraph_integer_t>::value) {
32-
igraph_vector_int_t edge_view;
32+
igraph_vector_int_t edge_view{};
3333
igraph_vector_int_view(&edge_view, edges, double_edges);
3434
return raiigraph::Graph(&edge_view, num_vertices, directed);
3535
} else {

0 commit comments

Comments
 (0)