Skip to content

Commit

Permalink
fix maybe-unused warning
Browse files Browse the repository at this point in the history
```
./include/deal.II/grid/reference_cell.h:2799:22: warning: ‘face1_vertices.std::array<unsigned[763/12022] M_elems[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
./source/grid/grid_tools_dof_handlers.cc:2438:7: note: ‘face1_vertices.std::array<unsigned int, 1>::_M_elems[0]’ was declared here
```
  • Loading branch information
tjhei committed Apr 7, 2024
1 parent 3f9f0fa commit 6b3f89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/grid/grid_tools_dof_handlers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2435,7 +2435,7 @@ namespace GridTools
// Do a full matching of the face vertices:

std::array<unsigned int, GeometryInfo<dim>::vertices_per_face>
face1_vertices, face2_vertices;
face1_vertices{}, face2_vertices;

AssertDimension(face1->n_vertices(), face2->n_vertices());

Expand Down

0 comments on commit 6b3f89e

Please sign in to comment.