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=7c64aedfc58aabe7ddb72d7ecd4be881b985fb1a;p=occt-copy.git Warnings --- diff --git a/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx b/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx index 54d6bfad6e..e05566c821 100644 --- a/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx +++ b/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx @@ -192,7 +192,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); @@ -204,7 +204,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) { @@ -220,7 +220,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 @@ -257,7 +257,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 @@ -294,7 +294,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 f4aeece7e5..d2b7de00dd 100644 --- a/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx +++ b/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx @@ -94,7 +94,6 @@ void BinLDrivers_DocumentStorageDriver::Write } theDevice->Open( Storage_VSAppend ); - Standard_Size aP = theDevice->Tell(); if (theDevice->CanWrite()) {