all repos — mgba @ e67bf2fd42db2534f32f72edfd0abc9f135bcfce

mGBA Game Boy Advance Emulator

Third-Party: Fix warnings in LZMA SDK
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Jan 2015 00:20:46 -0800
commit

e67bf2fd42db2534f32f72edfd0abc9f135bcfce

parent

7d385aabaf13a01b5b61991f18fe375fa0196e26

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M src/third-party/lzma/7zAlloc.csrc/third-party/lzma/7zAlloc.c

@@ -22,7 +22,7 @@ #endif

void *SzAlloc(void *p, size_t size) { - p = p; + (void) p; if (size == 0) return 0; #ifdef _SZ_ALLOC_DEBUG

@@ -34,7 +34,7 @@ }

void SzFree(void *p, void *address) { - p = p; + (void) p; #ifdef _SZ_ALLOC_DEBUG if (address != 0) {

@@ -47,7 +47,7 @@ }

void *SzAllocTemp(void *p, size_t size) { - p = p; + (void) p; if (size == 0) return 0; #ifdef _SZ_ALLOC_DEBUG

@@ -62,7 +62,7 @@ }

void SzFreeTemp(void *p, void *address) { - p = p; + (void) p; #ifdef _SZ_ALLOC_DEBUG if (address != 0) {
M src/third-party/lzma/7zArcIn.csrc/third-party/lzma/7zArcIn.c

@@ -1409,7 +1409,7 @@ {

if (folderIndex >= p->db.NumFolders) return SZ_ERROR_ARCHIVE; p->FolderStartFileIndex[folderIndex] = i; - if (curNumSubStreams == (UInt32)(Int32)-1); + if (curNumSubStreams == (UInt32)(Int32)-1) { curNumSubStreams = 1; if (ssi.sdNumSubStreams.Data != 0)