Skip to content

Commit

Permalink
avoid compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
unxed committed May 22, 2024
1 parent 1ca13d8 commit 9dc996f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CPP/7zip/Archive/Zip/ZipItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,8 @@ void CItem::GetUnicodeString(UString &res, const AString &s, bool isComment, boo
if (isOem || isAnsi) {

const char *legacyCp = nullptr;
int tableLen;
if (isOem) {
tableLen = sizeof(lcToOemTable) / sizeof(lcToOemTable[0]);
} else {
tableLen = sizeof(lcToAnsiTable) / sizeof(lcToAnsiTable[0]);
}
// lcToOemTable and lcToAnsiTable should have equal size as locales list is the same
int tableLen = sizeof(lcToOemTable) / sizeof(lcToOemTable[0]);
int lcLen = 0, i;

// Detect required code page name from current locale
Expand Down

0 comments on commit 9dc996f

Please sign in to comment.