From 0f5f7536e6dd3a5105099ba662875a163b6eeb83 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Tue, 22 Jun 2021 00:10:19 +0200 Subject: [PATCH] resolve compile errors Change-Id: Ia774e77708e947adbf8fb04065acc6efbbba5132 --- res_pack.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/res_pack.cpp b/res_pack.cpp index 817b0b0..1526214 100644 --- a/res_pack.cpp +++ b/res_pack.cpp @@ -436,9 +436,6 @@ static int _img_pack(const char** const path_src, const char* const packedImg, { FILE *fd_src = NULL; FILE *fd_dest = NULL; - unsigned int pos = 0; - char file_path[MAX_PATH]; - const char *filename = NULL; unsigned imageSz = 0; const unsigned BufSz = ITEM_READ_BUF_SZ; char* itemBuf = NULL; @@ -477,7 +474,6 @@ static int _img_pack(const char** const path_src, const char* const packedImg, } imageSz += HeadLen; //Increase imageSz after pack each item AmlResItemHead_t* pItemHeadInfo = (AmlResItemHead_t*)(aAmlResImgHead + 1); - AmlResItemHead_t* const pFirstItemHeadInfo = pItemHeadInfo; debugP("item num %d\n", totalItemNum); //for each loop: first create item header and pack it, second pack the item data @@ -610,7 +606,6 @@ static const char * const doc = "Amlogic `imgpack v3' usage:\n\ int main(int argc, const char ** const argv) { int ret = 0; - int c = 0; const char* opt = argv[1]; if(argc < 3) { -- 2.20.1