fixed warnings reported by GCC 6.2

This commit is contained in:
Guenter Obiltschnig
2016-10-14 10:27:44 +02:00
parent 946e00b77d
commit 12fc175b5a
2 changed files with 10 additions and 11 deletions

View File

@@ -174,7 +174,6 @@ int ZipStreamBuf::readFromDevice(char* buffer, std::streamsize length)
// now push back the header to the stream, so that the ZipLocalFileHeader can read it // now push back the header to the stream, so that the ZipLocalFileHeader can read it
Poco::Int32 size = static_cast<Poco::Int32>(nfo.getFullHeaderSize()); Poco::Int32 size = static_cast<Poco::Int32>(nfo.getFullHeaderSize());
_expectedCrc32 = nfo.getCRC32(); _expectedCrc32 = nfo.getCRC32();
const char* rawHeader = nfo.getRawHeader();
_pIstr->seekg(-size, std::ios::cur); _pIstr->seekg(-size, std::ios::cur);
if (!_pIstr->good()) throw Poco::IOException("Failed to seek on input stream"); if (!_pIstr->good()) throw Poco::IOException("Failed to seek on input stream");
if (!crcValid()) if (!crcValid())