]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Avoid warning message on g++ 4.4.1
authorageay <ageay>
Mon, 4 Jan 2010 11:33:08 +0000 (11:33 +0000)
committerageay <ageay>
Mon, 4 Jan 2010 11:33:08 +0000 (11:33 +0000)
src/INTERP_KERNEL/PolygonAlgorithms.txx

index 74fe484ae05969307fbae47c802a64fef17c3338..67c2a393d59fed3532957eccf493cc10c36dcf8a 100644 (file)
@@ -490,8 +490,10 @@ namespace INTERP_KERNEL
                 break;
               case 2 :
                 if(!_Inter.empty())
-                  if(i_glob < N1)  for(idim=0;idim<DIM;idim++) _Inter.push_back(P_1[DIM*i_glob+idim]);
-                  else for(idim=0;idim<DIM;idim++) _Inter.push_back(P_2[DIM*(i_glob-N1)+idim]);
+                  {
+                    if(i_glob < N1)  for(idim=0;idim<DIM;idim++) _Inter.push_back(P_1[DIM*i_glob+idim]);
+                    else for(idim=0;idim<DIM;idim++) _Inter.push_back(P_2[DIM*(i_glob-N1)+idim]);
+                  }
                 return _Inter;
               case 0 ://To do if possible : remove this case from here
                 if(_Inter.empty() && (i_glob < N1) != which_start){