mirror of https://github.com/mgba-emu/mgba.git
Third-Party: Fix warnings in LZMA SDK
This commit is contained in:
parent
7d385aabaf
commit
e67bf2fd42
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue