aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/zip.cc
diff options
context:
space:
mode:
authorGravatar Austin Schuh <austin.linux@gmail.com>2018-03-28 15:01:48 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-28 15:03:13 -0700
commit6d4f4f9e9278dd10f722adf7a5c02cfd5efee288 (patch)
tree9c4d0458e22b6233e1da54781414171ebd613b6b /third_party/ijar/zip.cc
parent0bf1413833ad78784771fefb468f080a53640136 (diff)
Fix unused variable warnings from clang.
This was preventing ijar and singlejar from building when included in @bazel_tools in our repo. Change-Id: I1553e4f3615965cb997579e7d277fb2a08f9b91b PiperOrigin-RevId: 190840090
Diffstat (limited to 'third_party/ijar/zip.cc')
-rw-r--r--third_party/ijar/zip.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc
index c5ff929836..9a719dbac3 100644
--- a/third_party/ijar/zip.cc
+++ b/third_party/ijar/zip.cc
@@ -147,13 +147,6 @@ class InputZipFile : public ZipExtractor {
const u1 *file_name_;
const u1 *extra_field_;
- // Administration of memory reserved for decompressed data. We use the same
- // buffer for each file to avoid some malloc()/free() calls and free the
- // memory only in the dtor. C-style memory management is used so that we
- // can call realloc.
- u1 *uncompressed_data_;
- size_t uncompressed_data_allocated_;
-
// Copy of the last filename entry - Null-terminated.
char filename[PATH_MAX];
// The external file attribute field
@@ -599,7 +592,7 @@ struct EndOfCentralDirectoryRecord {
// Checks for a zip64 end of central directory record. If a valid zip64 EOCD is
// found, updates the original EOCD record and returns true.
-bool MaybeReadZip64CentralDirectory(const u1 *bytes, size_t in_length,
+bool MaybeReadZip64CentralDirectory(const u1 *bytes, size_t /*in_length*/,
const u1 *current,
const u1 **end_of_central_dir,
EndOfCentralDirectoryRecord *cd) {