From e67bf2fd42db2534f32f72edfd0abc9f135bcfce Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 25 Jan 2015 00:20:46 -0800 Subject: [PATCH] Third-Party: Fix warnings in LZMA SDK --- src/third-party/lzma/7zAlloc.c | 8 ++++---- src/third-party/lzma/7zArcIn.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/third-party/lzma/7zAlloc.c b/src/third-party/lzma/7zAlloc.c index 698071c86..29c14cc44 100644 --- a/src/third-party/lzma/7zAlloc.c +++ b/src/third-party/lzma/7zAlloc.c @@ -22,7 +22,7 @@ int g_allocCountTemp = 0; 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 *SzAlloc(void *p, size_t size) void SzFree(void *p, void *address) { - p = p; + (void) p; #ifdef _SZ_ALLOC_DEBUG if (address != 0) { @@ -47,7 +47,7 @@ void SzFree(void *p, void *address) 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 *SzAllocTemp(void *p, size_t size) void SzFreeTemp(void *p, void *address) { - p = p; + (void) p; #ifdef _SZ_ALLOC_DEBUG if (address != 0) { diff --git a/src/third-party/lzma/7zArcIn.c b/src/third-party/lzma/7zArcIn.c index 5fd4f6b1b..561275507 100644 --- a/src/third-party/lzma/7zArcIn.c +++ b/src/third-party/lzma/7zArcIn.c @@ -1409,7 +1409,7 @@ static SRes SzReadHeader2( 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)