mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(7zip/Android) Fix unused variable warnings
This commit is contained in:
parent
636a0a954e
commit
f2429a99f4
@ -230,6 +230,8 @@ int read_7zip_file(const char * archive_path, const char *relative_path, void **
|
|||||||
|
|
||||||
UInt64 filesize = f->Size;
|
UInt64 filesize = f->Size;
|
||||||
|
|
||||||
|
(void)filesize;
|
||||||
|
|
||||||
if (strcmp(infile,relative_path) == 0)
|
if (strcmp(infile,relative_path) == 0)
|
||||||
{
|
{
|
||||||
res = SzArEx_Extract(&db, &lookStream.s, i,&blockIndex, &outBuffer, &outBufferSize,&offset, &outSizeProcessed,&allocImp, &allocTempImp);
|
res = SzArEx_Extract(&db, &lookStream.s, i,&blockIndex, &outBuffer, &outBufferSize,&offset, &outSizeProcessed,&allocImp, &allocTempImp);
|
||||||
@ -297,6 +299,8 @@ struct string_list *compressed_7zip_file_list_new(const char *path,
|
|||||||
size_t tempSize = 0;
|
size_t tempSize = 0;
|
||||||
long outsize = -1;
|
long outsize = -1;
|
||||||
|
|
||||||
|
(void)outsize;
|
||||||
|
|
||||||
//These are the allocation routines - currently using the non-standard 7zip choices.
|
//These are the allocation routines - currently using the non-standard 7zip choices.
|
||||||
allocImp.Alloc = SzAlloc;
|
allocImp.Alloc = SzAlloc;
|
||||||
allocImp.Free = SzFree;
|
allocImp.Free = SzFree;
|
||||||
@ -321,12 +325,21 @@ struct string_list *compressed_7zip_file_list_new(const char *path,
|
|||||||
UInt32 blockIndex = 0xFFFFFFFF;
|
UInt32 blockIndex = 0xFFFFFFFF;
|
||||||
Byte *outBuffer = 0;
|
Byte *outBuffer = 0;
|
||||||
size_t outBufferSize = 0;
|
size_t outBufferSize = 0;
|
||||||
|
|
||||||
|
(void)blockIndex;
|
||||||
|
(void)outBufferSize;
|
||||||
|
(void)outBuffer;
|
||||||
|
|
||||||
for (i = 0; i < db.db.NumFiles; i++)
|
for (i = 0; i < db.db.NumFiles; i++)
|
||||||
{
|
{
|
||||||
size_t offset = 0;
|
size_t offset = 0;
|
||||||
size_t outSizeProcessed = 0;
|
size_t outSizeProcessed = 0;
|
||||||
const CSzFileItem *f = db.db.Files + i;
|
const CSzFileItem *f = db.db.Files + i;
|
||||||
size_t len;
|
size_t len = 0;
|
||||||
|
|
||||||
|
(void)offset;
|
||||||
|
(void)outSizeProcessed;
|
||||||
|
|
||||||
if (f->IsDir)
|
if (f->IsDir)
|
||||||
{
|
{
|
||||||
/* we skip over everything, which is a directory. */
|
/* we skip over everything, which is a directory. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user