mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
Eliminate newly appeared warnings
This commit is contained in:
parent
796a784d36
commit
bd0b3e6097
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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( "\\" );
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user