Skip to content

Commit 546d604

Browse files
committed
Avoid compiler warning.
1 parent 822b63c commit 546d604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/lagrange/mesh_cleanup/legacy/resolve_nonmanifoldness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ std::unique_ptr<MeshType> resolve_nonmanifoldness(MeshType& mesh)
9090
*/
9191
auto is_inconsistently_oriented = [&mesh, &get_orientation](const Index ei) -> bool {
9292
const auto e = mesh.get_edge_vertices(ei);
93-
std::array<bool, 2> orientations;
93+
std::array<bool, 2> orientations{false, false};
9494
size_t count = 0;
9595
mesh.foreach_facets_around_edge(ei, [&](Index fid) {
9696
orientations[count] = get_orientation(e[0], e[1], fid);

0 commit comments

Comments
 (0)