Merge pull request #3370 from rohit-n/warnings

Silence -Wshadow and -Wmaybe-uninitialized warnings.
This commit is contained in:
Mathew Maidment 2015-12-21 11:44:51 -05:00
commit 4c62a5c0a4
2 changed files with 5 additions and 2 deletions

View File

@ -60,7 +60,10 @@ void CBoot::Load_FST(bool _bIsWii)
if (_bIsWii)
shift = 2;
u32 fst_offset, fst_size, max_fst_size;
u32 fst_offset = 0;
u32 fst_size = 0;
u32 max_fst_size = 0;
volume.ReadSwapped(0x0424, &fst_offset, _bIsWii);
volume.ReadSwapped(0x0428, &fst_size, _bIsWii);
volume.ReadSwapped(0x042c, &max_fst_size, _bIsWii);

View File

@ -128,7 +128,7 @@ static std::unique_ptr<IVolume> CreateVolumeFromCryptedWiiImage(std::unique_ptr<
struct SPartition
{
SPartition(u64 offset, u32 type) : offset(offset), type(type) {}
SPartition(u64 offset_, u32 type_) : offset(offset_), type(type_) {}
u64 offset;
u32 type;