From 84460005c3ce4be5318616b2c2fd8112a3506ee1 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 6 Jun 2014 05:48:00 +0000
Subject: [PATCH] fix warnings

---
 Mesh/yamakawa.cpp            | 2 +-
 Numeric/MetricBasis.cpp      | 4 ++--
 contrib/bamg/bamglib/Mesh2.h | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Mesh/yamakawa.cpp b/Mesh/yamakawa.cpp
index 7d783e6fb1..1dc4b3be2d 100644
--- a/Mesh/yamakawa.cpp
+++ b/Mesh/yamakawa.cpp
@@ -2425,7 +2425,7 @@ void Supplementary::init_markings(GRegion* gr){
   for(i=0;i<gr->getNumMeshElements();i++){
     element = gr->getMeshElement(i);
     if(four(element)){
-      markings.insert(std::pair<MElement*,bool>(element,0));
+      markings.insert(std::pair<MElement*,bool>(element,false));
     }
   }
 }
diff --git a/Numeric/MetricBasis.cpp b/Numeric/MetricBasis.cpp
index b739d0221b..65fdf56c7c 100644
--- a/Numeric/MetricBasis.cpp
+++ b/Numeric/MetricBasis.cpp
@@ -1274,7 +1274,7 @@ void MetricBasis::_maxAstK4(const fullMatrix<double> &coeff,
 
   while (itJ != _ineqJ2.end() && itP != _ineqP3.end()) {
     double num = 0, den = 0;
-    for (int l = 0; l < itJ->second.size(); ++l) {
+    for (unsigned int l = 0; l < itJ->second.size(); ++l) {
       const int i = itJ->second[l].i;
       const int j = itJ->second[l].j;
       num += itJ->second[l].val * jac(i) * jac(j);
@@ -1414,7 +1414,7 @@ void MetricBasis::_maxKstA3(const fullMatrix<double> &coeff,
       num -= itJ->second[l].val * jac(i) * jac(j);
     }
     num *= beta;
-    for (int l = 0; l < itP->second.size(); ++l) {
+    for (unsigned int l = 0; l < itP->second.size(); ++l) {
       const int i = itP->second[l].i;
       const int j = itP->second[l].j;
       const int k = itP->second[l].k;
diff --git a/contrib/bamg/bamglib/Mesh2.h b/contrib/bamg/bamglib/Mesh2.h
index 3c4afa346d..879843d419 100644
--- a/contrib/bamg/bamglib/Mesh2.h
+++ b/contrib/bamg/bamglib/Mesh2.h
@@ -54,7 +54,7 @@ namespace bamg {
 
 
 const  double Pi =  3.14159265358979323846264338328;
-const  float fPi =  3.14159265358979323846264338328;
+const  float fPi =  (float)3.14159265358979323846264338328;
 
 
 class MeshIstream;
-- 
GitLab