]> OCCT Git - occt-copy.git/commitdiff
Warnings is IntPatch_ImpImpIntersection_4.gxx on unix platforms and in ViewerTest...
authorapn <apn@opencascade.com>
Fri, 16 Dec 2016 09:17:19 +0000 (12:17 +0300)
committerapn <apn@opencascade.com>
Fri, 16 Dec 2016 09:17:19 +0000 (12:17 +0300)
src/IntPatch/IntPatch_ImpImpIntersection_4.gxx
src/ViewerTest/ViewerTest.cxx

index 4427763064ef373fe2cb0ed5117ec764bb97f973..daf260ff61fb94151fa14d2db508a498ee915256 100644 (file)
@@ -2815,7 +2815,7 @@ IntPatch_ImpImpIntersection::IntStatus IntCyCy(const IntSurf_Quadric& theQuad1,
         anUexpect[i] = anUf;
       }
       
-      Standard_Real aCriticalDelta[aNbCritPointsMax];
+      Standard_Real aCriticalDelta[aNbCritPointsMax] = {0};
       for(Standard_Integer aCritPID = 0; aCritPID < aNbCritPoints; aCritPID++)
       { //We are not interested in elements of aCriticalDelta array
         //if their index is greater than or equal to aNbCritPoints
index f00eaa0bde78dd048d1aac13bf8627913a1b4715..c6725bf7e7b147d9628b044af52a2384018b73c0 100644 (file)
@@ -2225,14 +2225,14 @@ static Standard_Integer VAspects (Draw_Interpretor& /*theDI*/,
       }
 
       aChangeSet->ToSetHatch = 1;
-      TCollection_AsciiString anArg (theArgVec[++anArgIter]);
-      if (anArg.Length() <= 2)
+      TCollection_AsciiString anArgHatch (theArgVec[++anArgIter]);
+      if (anArgHatch.Length() <= 2)
       {
-        aChangeSet->StdHatchStyle = Draw::Atoi (anArg.ToCString());
+        aChangeSet->StdHatchStyle = Draw::Atoi (anArgHatch.ToCString());
       }
       else
       {
-        aChangeSet->PathToHatchPattern = anArg;
+        aChangeSet->PathToHatchPattern = anArgHatch;
       }
     }
     else