From 498e4d033f653d6be59a745da1075b5da3b37dd8 Mon Sep 17 00:00:00 2001 From: Hans-Christian Ebke Date: Thu, 19 Nov 2015 15:21:00 +0100 Subject: [PATCH] Purged warnings in unit tests. --- src/Unittests/unittests_cpp_11_features.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Unittests/unittests_cpp_11_features.cc b/src/Unittests/unittests_cpp_11_features.cc index ec3cb64b..72915491 100644 --- a/src/Unittests/unittests_cpp_11_features.cc +++ b/src/Unittests/unittests_cpp_11_features.cc @@ -82,6 +82,7 @@ TEST_F(OpenMesh_Triangle, cpp11_vertexrange_test) { for(Mesh::VertexHandle t : mesh_.vertices()) { FAIL() << "The Vertexrange for an empty Mesh is not empty"; + EXPECT_TRUE(t.is_valid()); // Just so we don't get an unused variable warning. } //add vertices to mesh @@ -110,6 +111,7 @@ TEST_F(OpenMesh_Poly, cpp11_vertexrange_test) { for(PolyMesh::VertexHandle t : mesh_.vertices()) { FAIL() << "The Vertexrange for an empty Mesh is not empty"; + EXPECT_TRUE(t.is_valid()); // Just so we don't get an unused variable warning. } //add vertices to mesh @@ -140,6 +142,7 @@ TEST_F(OpenMesh_Triangle, cpp11_vvrange_test) { for(Mesh::VertexHandle t : mesh_.vv_range(vhandle[0])) { FAIL() << "The vvrange for a single vertex in a TriMesh is not empty"; + EXPECT_TRUE(t.is_valid()); // Just so we don't get an unused variable warning. } //add more vertices @@ -198,6 +201,7 @@ TEST_F(OpenMesh_Poly, cpp11_vvrange_test) { for(PolyMesh::VertexHandle t : mesh_.vv_range(vhandle[0])) { FAIL() << "The vvrange for a single vertex in a PolyMesh is not empty"; + EXPECT_TRUE(t.is_valid()); // Just so we don't get an unused variable warning. } //add more vertices