diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp
index 7d970e2cd0414c5127b15cf38b373ab79f8c1452..7a7c3f702f01428b9273ff268db1558601d724b3 100644
--- a/Geo/GFaceCompound.cpp
+++ b/Geo/GFaceCompound.cpp
@@ -838,7 +838,7 @@ void GFaceCompound::parametrize_conformal() const
   gmshLinearSystemGmm<double> lsys;
   //gmshLinearSystemCSRGmm<double> lsys;
   lsys.setPrec(1.e-15);
-  lsys.setGmres(1.);
+  lsys.setGmres(1);
   if(Msg::GetVerbosity() == 99) lsys.setNoisy(2);
 #else
   gmshLinearSystemFull<double> lsys;
diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp
index 8e261b7056586c702319c1fcc0374a867efbaef3..22ae577fba0ed7ab2972f34e12cb960353e64e67 100644
--- a/Mesh/Generator.cpp
+++ b/Mesh/Generator.cpp
@@ -120,7 +120,7 @@ geomTresholdVertexEquivalence::geomTresholdVertexEquivalence(GModel *g)
       std::list<GEdge*> ed = g->edges();
       for (std::list<GEdge*>::iterator ite = ed.begin() ; ite != ed.end() ; ++ite){
 	std::vector<MLine*> newl;
-	for (int i=0;i<(*ite)->lines.size();++i){
+	for (unsigned int i = 0; i < (*ite)->lines.size(); ++i){
 	  MLine *l = (*ite)->lines[i];
 	  MVertex *v1 = l->getVertex(0);
 	  MVertex *v2 = l->getVertex(1);