From 4e3d083b630b6e4d8d8deaaa0dc3c17fa756deb6 Mon Sep 17 00:00:00 2001
From: Wenqing Wang <wenqing.wang@ufz.de>
Date: Tue, 13 Jun 2017 18:07:41 +0200
Subject: [PATCH] Removed three compilation warnings

---
 MathLib/LinAlg/PETSc/PETScVector.cpp                 | 2 +-
 ProcessLib/HydroMechanics/HydroMechanicsFEM.h        | 2 +-
 Tests/NumLib/LocalToGlobalIndexMapMultiComponent.cpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MathLib/LinAlg/PETSc/PETScVector.cpp b/MathLib/LinAlg/PETSc/PETScVector.cpp
index 071b90dcef1..b568a5ce203 100644
--- a/MathLib/LinAlg/PETSc/PETScVector.cpp
+++ b/MathLib/LinAlg/PETSc/PETScVector.cpp
@@ -143,7 +143,7 @@ void PETScVector::getGlobalVector(std::vector<PetscScalar>& u) const
     PetscMemoryGetCurrentUsage(&mem1);
 #endif
 
-    assert(u.size() == _size);
+    assert(static_cast<PetscInt>(u.size()) == _size);
 
     PetscScalar* xp = nullptr;
     VecGetArray(_v, &xp);
diff --git a/ProcessLib/HydroMechanics/HydroMechanicsFEM.h b/ProcessLib/HydroMechanics/HydroMechanicsFEM.h
index a265823988b..31797fd333d 100644
--- a/ProcessLib/HydroMechanics/HydroMechanicsFEM.h
+++ b/ProcessLib/HydroMechanics/HydroMechanicsFEM.h
@@ -86,7 +86,7 @@ struct IntegrationPointData final
         double const t,
         SpatialPosition const& x_position,
         double const dt,
-        DisplacementVectorType const& u)
+        DisplacementVectorType const& /*u*/)
     {
         auto&& solution = solid_material.integrateStress(
             t, x_position, dt, eps_prev, eps, sigma_eff_prev,
diff --git a/Tests/NumLib/LocalToGlobalIndexMapMultiComponent.cpp b/Tests/NumLib/LocalToGlobalIndexMapMultiComponent.cpp
index 0e82dc36724..436e1809fa3 100644
--- a/Tests/NumLib/LocalToGlobalIndexMapMultiComponent.cpp
+++ b/Tests/NumLib/LocalToGlobalIndexMapMultiComponent.cpp
@@ -83,7 +83,7 @@ public:
                         const int selected_component,
                         const NL::ComponentOrder order)
     {
-        assert(selected_component < num_components);
+        assert(selected_component < static_cast<int>(num_components));
 
         std::vector<MeshLib::MeshSubsets> components;
         for (unsigned i=0; i<num_components; ++i)
-- 
GitLab