Commit bee69486 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Avoid compiler warning in range-for unit tests

parent 75322fef
......@@ -26,8 +26,9 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) {
TEST_F(HexahedralMeshBase, RangeForTest) {
// no EXPECTs here, if it compiles, it'll work.
for (const auto& vh: mesh_.vertices()) {}
VertexHandle _dummy; // use vh to avoid compiler warnings
for (const auto& vh: mesh_.vertices()) { _dummy = vh;}
const auto& constref = mesh_;
for (const auto& vh: constref.vertices()) {}
for (const auto& vh: constref.vertices()) { _dummy = vh;}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment