diff options
author | Greg Hackmann <ghackmann@google.com> | 2015-04-27 10:14:32 -0700 |
---|---|---|
committer | Greg Hackmann <ghackmann@google.com> | 2015-04-27 10:14:32 -0700 |
commit | d6eac24aac0069cb6d00d2c723db5adab1a724c4 (patch) | |
tree | 9b712b3293b5dd61302cbba603013a59d5e49c11 /libziparchive | |
parent | 246f8533bf397bb0d505c5cc53e8533c2d59d3fd (diff) | |
download | system_core-d6eac24aac0069cb6d00d2c723db5adab1a724c4.tar.gz system_core-d6eac24aac0069cb6d00d2c723db5adab1a724c4.tar.bz2 system_core-d6eac24aac0069cb6d00d2c723db5adab1a724c4.zip |
libziparchive: fix clang build
Change-Id: I69105a9cde05b182f65c7e574282bb4b48b66e95
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'libziparchive')
-rw-r--r-- | libziparchive/zip_archive.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libziparchive/zip_archive.cc b/libziparchive/zip_archive.cc index 4ba91dfb9..34131f1be 100644 --- a/libziparchive/zip_archive.cc +++ b/libziparchive/zip_archive.cc @@ -268,8 +268,6 @@ static const int32_t kMmapFailed = -12; static const int32_t kErrorMessageLowerBound = -13; -static const char kTempMappingFileName[] = "zip: ExtractFileToFile"; - /* * A Read-only Zip archive. * @@ -1038,7 +1036,6 @@ class FileWriter : public Writer { // Keep track of the start position so we can calculate the // total number of bytes written. const uint8_t* const start = buf; - size_t bytes_written = 0; while (buf_size > 0) { ssize_t bytes_written = TEMP_FAILURE_RETRY(write(fd_, buf, buf_size)); if (bytes_written == -1) { @@ -1122,7 +1119,6 @@ static int32_t InflateEntryToWriter(int fd, const ZipEntry* entry, const uint32_t uncompressed_length = entry->uncompressed_length; uint32_t compressed_length = entry->compressed_length; - uint32_t write_count = 0; do { /* read as much as we can */ if (zstream.avail_in == 0) { |