mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 08:52:41 +00:00
(7zIn.c) Get rid of one pedantic warning - declaration shadows a local
variable
This commit is contained in:
parent
9e6e01e714
commit
323e3963da
35
deps/7zip/7zIn.c
vendored
35
deps/7zip/7zIn.c
vendored
@ -268,40 +268,6 @@ int SzArEx_GetFolderFullPackSize(const CSzArEx *p, uint32_t folderIndex, uint64_
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
SRes SzReadTime(const CObjectVector<CBuf> &dataVector,
|
||||
CObjectVector<CSzFileItem> &files, uint64_t type)
|
||||
{
|
||||
CBoolVector boolVector;
|
||||
RINOK(ReadBoolVector2(files.Size(), boolVector))
|
||||
|
||||
CStreamSwitch streamSwitch;
|
||||
RINOK(streamSwitch.Set(this, &dataVector));
|
||||
|
||||
for (int i = 0; i < files.Size(); i++)
|
||||
{
|
||||
CSzFileItem &file = files[i];
|
||||
CArchiveFileTime fileTime;
|
||||
bool defined = boolVector[i];
|
||||
if (defined)
|
||||
{
|
||||
uint32_t low, high;
|
||||
RINOK(SzReaduint32_t(low));
|
||||
RINOK(SzReaduint32_t(high));
|
||||
fileTime.dwLowDateTime = low;
|
||||
fileTime.dwHighDateTime = high;
|
||||
}
|
||||
switch(type)
|
||||
{
|
||||
case k7zIdCTime: file.IsCTimeDefined = defined; if (defined) file.CTime = fileTime; break;
|
||||
case k7zIdATime: file.IsATimeDefined = defined; if (defined) file.ATime = fileTime; break;
|
||||
case k7zIdMTime: file.IsMTimeDefined = defined; if (defined) file.MTime = fileTime; break;
|
||||
}
|
||||
}
|
||||
return SZ_OK;
|
||||
}
|
||||
*/
|
||||
|
||||
static int TestSignatureCandidate(uint8_t *testuint8_ts)
|
||||
{
|
||||
size_t i;
|
||||
@ -998,7 +964,6 @@ static SRes SzReadHeader2(
|
||||
|
||||
for (;;)
|
||||
{
|
||||
uint64_t type;
|
||||
uint64_t size;
|
||||
RINOK(SzReadID(sd, &type));
|
||||
if (type == k7zIdEnd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user