Eliminate newly appeared warnings
authorabv <abv@opencascade.com>
Fri, 25 Oct 2013 02:43:43 +0000 (06:43 +0400)
committerabv <abv@opencascade.com>
Fri, 25 Oct 2013 02:43:43 +0000 (06:43 +0400)
src/BOPAlgo/BOPAlgo_Builder_2.cxx
src/Graphic3d/Graphic3d_ShaderObject.cxx
src/OSD/OSD_Disk.cxx
src/OpenGl/OpenGl_ShaderProgram.cxx
src/TDataStd/TDataStd_NamedData.cxx
src/VrmlData/VrmlData_IndexedFaceSet.cxx

index 341ea4f..b109958 100644 (file)
@@ -97,7 +97,6 @@ void BOPAlgo_Builder::BuildSplitFaces()
 {
   Standard_Boolean bHasFaceInfo, bIsClosed, bIsDegenerated, bToReverse;
   Standard_Integer i, j, k, aNbS, aNbPBIn, aNbPBOn, aNbPBSc, aNbAV, nSp;
-  Standard_Boolean bRunParallel;
   Standard_Size aNbBF;
   TopoDS_Face aFF, aFSD;
   TopoDS_Edge aSp, aEE;
index f83ab10..57f4725 100644 (file)
@@ -59,7 +59,7 @@ Handle(Graphic3d_ShaderObject) Graphic3d_ShaderObject::CreateFromFile (const Gra
   }
 
   aFile.Open (OSD_ReadOnly, OSD_Protection());
-  aFile.Read (aShader->mySource, aFile.Size());
+  aFile.Read (aShader->mySource, (int)aFile.Size());
   aFile.Close();
 
   return aShader;
index 0de301f..a6a3cc1 100755 (executable)
@@ -415,7 +415,7 @@ static void __fastcall _osd_wnt_set_disk_name ( TCollection_AsciiString& result,
     }  /* end if */
 
     if ( k == 0 )
-
+    {
      if (  path.Name ().UsefullLength () == 0 && path.Extension ().UsefullLength () == 0  )
      
       goto badPath;
@@ -427,6 +427,7 @@ static void __fastcall _osd_wnt_set_disk_name ( TCollection_AsciiString& result,
       dir += path.Extension ();
       
      }  // end else    
+    }
 
     if (   dir.Value (  dir.UsefullLength ()  ) != TEXT( '\\' )   ) dir += TEXT( "\\" );
 
index 8aee2a7..7a7ffcd 100644 (file)
@@ -290,7 +290,7 @@ Standard_Boolean OpenGl_ShaderProgram::Initialize (const Handle(OpenGl_Context)&
   TCollection_AsciiString aDeclarations;
 
   aDeclFile.Open (OSD_ReadOnly, OSD_Protection());
-  aDeclFile.Read (aDeclarations, aDeclFile.Size());
+  aDeclFile.Read (aDeclarations, (int)aDeclFile.Size());
   aDeclFile.Close();
 
   for (Graphic3d_ShaderObjectList::Iterator anIter (theShaders);
index 3d58c46..41b6a1f 100755 (executable)
@@ -793,11 +793,11 @@ void TDataStd_NamedData::Paste (const Handle(TDF_Attribute)& Into,
 Standard_OStream& TDataStd_NamedData::Dump (Standard_OStream& anOS) const
 {  
   anOS << "NamedData: ";
-  anOS << "\tIntegers = " << HasIntegers() ? myIntegers->Map().Extent() : 0;
-  anOS << "\tReals = " << HasReals() ? myReals->Map().Extent() : 0;
-  anOS << "\tStrings = " << HasStrings() ? myStrings->Map().Extent() : 0;
-  anOS << "\tBytes = " << HasBytes() ? myBytes->Map().Extent() : 0;
-  anOS << "\tArraysOfIntegers = " << HasArraysOfIntegers() ? myArraysOfIntegers->Map().Extent() : 0;
-  anOS << "\tArraysOfReals = " << HasArraysOfReals() ? myArraysOfReals->Map().Extent() : 0;
+  anOS << "\tIntegers = " << (HasIntegers() ? myIntegers->Map().Extent() : 0);
+  anOS << "\tReals = " << (HasReals() ? myReals->Map().Extent() : 0);
+  anOS << "\tStrings = " << (HasStrings() ? myStrings->Map().Extent() : 0);
+  anOS << "\tBytes = " << (HasBytes() ? myBytes->Map().Extent() : 0);
+  anOS << "\tArraysOfIntegers = " << (HasArraysOfIntegers() ? myArraysOfIntegers->Map().Extent() : 0);
+  anOS << "\tArraysOfReals = " << (HasArraysOfReals() ? myArraysOfReals->Map().Extent() : 0);
   return anOS;
 }
index 42ecd03..e1f128c 100755 (executable)
@@ -93,7 +93,7 @@ const Handle(TopoDS_TShape)& VrmlData_IndexedFaceSet::TShape ()
     NCollection_DataMap <int, int> mapNodeId;
 
     // Count non-degenerated triangles
-    const int nNodes = myCoords->Length();
+    const int nNodes = (int)myCoords->Length();
     for (i = 0; i < (int)myNbPolygons; i++) {
       const Standard_Integer * arrIndice;
       if (Polygon(i, arrIndice) == 3) {