From 9faa93e605142705b3d31bd833c51833097fa266 Mon Sep 17 00:00:00 2001 From: Gianluca Bertani Date: Tue, 18 Jun 2013 23:21:51 +0200 Subject: [PATCH] Commented dead stores --- MiniZip/zip.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MiniZip/zip.c b/MiniZip/zip.c index b312303..296d08e 100644 --- a/MiniZip/zip.c +++ b/MiniZip/zip.c @@ -1034,10 +1034,10 @@ int Write_LocalFileHeader(zip64_internal* zi, const char* filename, uInt size_ex // Remember position of Zip64 extended info for the local file header. (needed when we update size after done with file) zi->ci.pos_zip64extrainfo = ZTELL64(zi->z_filefunc,zi->filestream); - err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)HeaderID,2); - err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)DataSize,2); + /* err = */ zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)HeaderID,2); + /* err = */ zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)DataSize,2); - err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)UncompressedSize,8); + /* err = */ zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)UncompressedSize,8); err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)CompressedSize,8); } @@ -1534,7 +1534,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_s if (zi->ci.stream.avail_out == 0) { if (zip64FlushWriteBuffer(zi) == ZIP_ERRNO) - err = ZIP_ERRNO; + /* err = ZIP_ERRNO */; zi->ci.stream.avail_out = (uInt)Z_BUFSIZE; zi->ci.stream.next_out = zi->ci.buffered_data; } @@ -1679,7 +1679,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_s if(zi->ci.pos_local_header >= 0xffffffff) { zip64local_putValue_inmemory(p, zi->ci.pos_local_header, 8); - p += 8; + /* p += 8 */; } // Update how much extra free space we got in the memory buffer