diff options
author | Tao Bao <tbao@google.com> | 2015-06-03 10:49:29 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 19:02:26 -0800 |
commit | 0997ce973c09513e79a5b3e597cddf4e0ad77b62 (patch) | |
tree | 7385cfc99060b8cdde1e1093d548f2b1e2519baf /minzip | |
parent | f43603fbd68ffbbff81bc8653aa547a8acc7cc46 (diff) | |
download | bootable_recovery-0997ce973c09513e79a5b3e597cddf4e0ad77b62.zip bootable_recovery-0997ce973c09513e79a5b3e597cddf4e0ad77b62.tar.gz bootable_recovery-0997ce973c09513e79a5b3e597cddf4e0ad77b62.tar.bz2 |
recovery: Switch to clang
And a few trival fixes to suppress warnings.
Change-Id: I38734b5f4434643e85feab25f4807b46a45d8d65
Diffstat (limited to 'minzip')
-rw-r--r-- | minzip/Android.mk | 2 | ||||
-rw-r--r-- | minzip/Zip.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/minzip/Android.mk b/minzip/Android.mk index 045f355..48d26bc 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 40712e0..a64c833 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: |