Third-Party: Fix warnings in LZMA SDK
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Jan 2015 00:20:46 -0800
2 files changed,
5 insertions(+),
5 deletions(-)
M
src/third-party/lzma/7zAlloc.c
→
src/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.c
→
src/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)