Third-Party: Fix warnings in LZMA SDK

This commit is contained in:
Jeffrey Pfau 2015-01-25 00:20:46 -08:00
parent 7d385aabaf
commit e67bf2fd42
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ int g_allocCountTemp = 0;
void *SzAlloc(void *p, size_t size) void *SzAlloc(void *p, size_t size)
{ {
p = p; (void) p;
if (size == 0) if (size == 0)
return 0; return 0;
#ifdef _SZ_ALLOC_DEBUG #ifdef _SZ_ALLOC_DEBUG
@ -34,7 +34,7 @@ void *SzAlloc(void *p, size_t size)
void SzFree(void *p, void *address) void SzFree(void *p, void *address)
{ {
p = p; (void) p;
#ifdef _SZ_ALLOC_DEBUG #ifdef _SZ_ALLOC_DEBUG
if (address != 0) if (address != 0)
{ {
@ -47,7 +47,7 @@ void SzFree(void *p, void *address)
void *SzAllocTemp(void *p, size_t size) void *SzAllocTemp(void *p, size_t size)
{ {
p = p; (void) p;
if (size == 0) if (size == 0)
return 0; return 0;
#ifdef _SZ_ALLOC_DEBUG #ifdef _SZ_ALLOC_DEBUG
@ -62,7 +62,7 @@ void *SzAllocTemp(void *p, size_t size)
void SzFreeTemp(void *p, void *address) void SzFreeTemp(void *p, void *address)
{ {
p = p; (void) p;
#ifdef _SZ_ALLOC_DEBUG #ifdef _SZ_ALLOC_DEBUG
if (address != 0) if (address != 0)
{ {

View File

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