summaryrefslogtreecommitdiffstats
path: root/minzip
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-06-03 19:49:29 +0200
committerRom Lemarchand <romlem@google.com>2015-11-16 23:28:40 +0100
commit7101b2e2854985727b7ef65e5b5057e0ecf2d034 (patch)
tree937f286110e485837d6a50203c7ab362a4f7afdd /minzip
parentam 838768ca: am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGE (diff)
downloadandroid_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.tar
android_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.tar.gz
android_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.tar.bz2
android_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.tar.lz
android_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.tar.xz
android_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.tar.zst
android_bootable_recovery-7101b2e2854985727b7ef65e5b5057e0ecf2d034.zip
Diffstat (limited to 'minzip')
-rw-r--r--minzip/Android.mk2
-rw-r--r--minzip/Zip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/minzip/Android.mk b/minzip/Android.mk
index 045f35570..48d26bcb7 100644
--- a/minzip/Android.mk
+++ b/minzip/Android.mk
@@ -16,6 +16,8 @@ LOCAL_STATIC_LIBRARIES := libselinux
LOCAL_MODULE := libminzip
+LOCAL_CLANG := true
+
LOCAL_CFLAGS += -Wall
include $(BUILD_STATIC_LIBRARY)
diff --git a/minzip/Zip.c b/minzip/Zip.c
index 40712e03a..a64c833f9 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -506,7 +506,6 @@ static bool processDeflatedEntry(const ZipArchive *pArchive,
void *cookie)
{
long result = -1;
- unsigned char readBuf[32 * 1024];
unsigned char procBuf[32 * 1024];
z_stream zstream;
int zerr;
@@ -603,7 +602,6 @@ bool mzProcessZipEntryContents(const ZipArchive *pArchive,
void *cookie)
{
bool ret = false;
- off_t oldOff;
switch (pEntry->compression) {
case STORED: