Skip to content

Commit 8fb7104

Browse files
committed
Avoid "unused variable" warning on older gcc
This is blocking the "Min gcc debug" target in our devel->master merge testing.
1 parent 3961fd8 commit 8fb7104

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/mesh/poly2tri_triangulator.C

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ void libmesh_assert_delaunay(MeshBase & libmesh_dbg_var(mesh),
169169
libmesh_assert_locally_delaunay(*elem);
170170

171171
for (auto & [raw_elem, unique_elem] : new_elems)
172-
libmesh_assert_locally_delaunay(*raw_elem);
172+
{
173+
libmesh_ignore(unique_elem); // avoid warnings on old gcc
174+
libmesh_assert_locally_delaunay(*raw_elem);
175+
}
173176
#endif
174177
}
175178

0 commit comments

Comments
 (0)