From: Jan Altensen Date: Mon, 21 Jun 2021 22:10:19 +0000 (+0200) Subject: resolve compile errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_tools_respacker.git resolve compile errors Change-Id: Ia774e77708e947adbf8fb04065acc6efbbba5132 --- 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) {