diff --git a/MeshLib/VtkOGSEnum.cpp b/MeshLib/VtkOGSEnum.cpp index 4664175da0f473aa715abe0b5e92eef22a33f5e8..d92df57d705598b5ea9b4da6ffb88665f9c617ad 100644 --- a/MeshLib/VtkOGSEnum.cpp +++ b/MeshLib/VtkOGSEnum.cpp @@ -92,7 +92,7 @@ int OGSToVtkCellType(CellType ogs) return VTK_PYRAMID; case CellType::PYRAMID13: return VTK_QUADRATIC_PYRAMID; - case CellType::INVALID: + default: return -1; } } diff --git a/Tests/MeshLib/MeshProperties.cpp b/Tests/MeshLib/MeshProperties.cpp index c21f00d1f103269cc08519e92497408658fb6572..6f2e2650cd948d79a9810660c71b3b7a455f1e3b 100644 --- a/Tests/MeshLib/MeshProperties.cpp +++ b/Tests/MeshLib/MeshProperties.cpp @@ -483,8 +483,8 @@ TEST_F(MeshLibProperties, AddDoublePropertiesTupleSize2) // push some values (2 tuples) into the vector for (std::size_t k(0); k<size; k++) { - pv.push_back(k); - pv.push_back(k); + pv.push_back(static_cast<double>(k)); + pv.push_back(static_cast<double>(k)); } // check the size, i.e., the number of tuples ASSERT_EQ(size, pv.size());