From: abv Date: Thu, 17 Sep 2015 20:12:44 +0000 (+0300) Subject: Warnings X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4c72ad3a18ea8b749aa3cba95e1d62ed1564deed;p=occt-copy.git Warnings --- diff --git a/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx b/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx index 3645ae630c..d0be1b9b0d 100644 --- a/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx +++ b/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx @@ -205,7 +205,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)& } // skip info section - theDevice->Seek ((streampos) anInfoSectionEnd); + theDevice->Seek (anInfoSectionEnd); // propagate the opened document version to data drivers PropagateDocumentVersion(aFileVer); @@ -217,7 +217,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)& mySections.Clear(); myPAtt.Init(); Handle(TDF_Data) aData = new TDF_Data(); - streampos aDocumentPos = -1; + Storage_Position aDocumentPos = -1; // 2b. Read the TOC of Sections if (aFileVer >= 3) { @@ -233,7 +233,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)& for (; anIterS.More(); anIterS.Next()) { BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue(); if (aCurSection.IsPostRead() == Standard_False) { - theDevice->Seek((streampos) aCurSection.Offset()); + theDevice->Seek((Storage_Position)aCurSection.Offset()); if (aCurSection.Name().IsEqual ((Standard_CString)SHAPESECTION_POS)) ReadShapeSection (aCurSection, theDevice); else @@ -270,7 +270,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)& #endif if(aShapeSectionPos) { aDocumentPos = theDevice->Tell(); - theDevice->Seek ((streampos) aShapeSectionPos); + theDevice->Seek (aShapeSectionPos); //CheckShapeSection(aShapeSectionPos, theDevice); // Read Shapes @@ -307,7 +307,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (const Handle(Storage_IODevice)& for (; anIterS.More(); anIterS.Next()) { BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue(); if (aCurSection.IsPostRead()) { - theDevice->Seek ((streampos) aCurSection.Offset()); + theDevice->Seek ((Storage_Position)aCurSection.Offset()); ReadSection (aCurSection, theNewDocument, theDevice); } } diff --git a/src/BinLDrivers/BinLDrivers_DocumentSection.cxx b/src/BinLDrivers/BinLDrivers_DocumentSection.cxx index 7172921ddc..cebcd4ab5e 100644 --- a/src/BinLDrivers/BinLDrivers_DocumentSection.cxx +++ b/src/BinLDrivers/BinLDrivers_DocumentSection.cxx @@ -161,7 +161,7 @@ void BinLDrivers_DocumentSection::Write (const Handle(Storage_IODevice)& theDevi const Standard_Size theOffset) { const Standard_Size aSectionEnd = (Standard_Size)theDevice->Tell(); - theDevice->Seek(myValue[0]); + theDevice->Seek((Storage_Position)myValue[0]); myValue[0] = theOffset; myValue[1] = aSectionEnd - theOffset; Standard_Integer aVal[3] = { @@ -176,7 +176,7 @@ void BinLDrivers_DocumentSection::Write (const Handle(Storage_IODevice)& theDevi #endif theDevice->Write((Standard_Address)&aVal[0], 3*sizeof(Standard_Integer)); - theDevice->Seek(aSectionEnd); + theDevice->Seek((Storage_Position)aSectionEnd); } //======================================================================= diff --git a/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx b/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx index e0e38d15c7..0c2b69eff8 100644 --- a/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx +++ b/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx @@ -102,7 +102,6 @@ void BinLDrivers_DocumentStorageDriver::Write } theDevice->Open( Storage_VSAppend ); - Standard_Size aP = theDevice->Tell(); if (theDevice->CanWrite()) {