summaryrefslogtreecommitdiffstats
path: root/minzip
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-06-04 00:52:08 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-06-04 00:52:08 +0200
commitdb553d5d5a3b413bf37339f735b3e8f2ad6d93b8 (patch)
tree6b3246980477918a5d27389194225864175bddda /minzip
parentam 028d216c: am 227069d7: Merge "Fix build: fprintf without modifier" (diff)
parentam 3f9db6af: Merge "recovery: Switch to clang" (diff)
downloadandroid_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.tar
android_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.tar.gz
android_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.tar.bz2
android_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.tar.lz
android_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.tar.xz
android_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.tar.zst
android_bootable_recovery-db553d5d5a3b413bf37339f735b3e8f2ad6d93b8.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: