From b354dcef986938a77c96da98c388e34394df7e3d Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Thu, 1 Mar 2018 21:32:13 +0000 Subject: [PATCH] Remove empty zip warning on host builds Change-Id: Iaafe208930c316cc32f39ce2687be555b9eeb35f --- libziparchive/zip_archive.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libziparchive/zip_archive.cc b/libziparchive/zip_archive.cc index f9f8c73d9..5e5e7afd1 100644 --- a/libziparchive/zip_archive.cc +++ b/libziparchive/zip_archive.cc @@ -224,7 +224,9 @@ static int32_t MapCentralDirectory0(const char* debug_file_name, ZipArchive* arc return kInvalidOffset; } if (eocd->num_records == 0) { +#if defined(__ANDROID__) ALOGW("Zip: empty archive?"); +#endif return kEmptyArchive; }