Merge pull request #893 from rohitnirmal/scan-build-fixes

Scan build fixes
This commit is contained in:
shuffle2 2014-09-02 23:15:18 -07:00
commit 532b7bb7da
4 changed files with 4 additions and 5 deletions

View File

@ -1037,7 +1037,7 @@ void OpArg::WriteSingleByteOp(XEmitter *emit, u8 op, X64Reg _operandReg, int bit
//operand can either be immediate or register
void OpArg::WriteNormalOp(XEmitter *emit, bool toRM, NormalOp op, const OpArg &operand, int bits) const
{
X64Reg _operandReg = (X64Reg)this->operandReg;
X64Reg _operandReg;
if (IsImm())
{
_assert_msg_(DYNA_REC, 0, "WriteNormalOp - Imm argument, wrong order");
@ -1051,7 +1051,6 @@ void OpArg::WriteNormalOp(XEmitter *emit, bool toRM, NormalOp op, const OpArg &o
if (operand.IsImm())
{
_operandReg = (X64Reg)0;
WriteRex(emit, bits, bits);
if (!toRM)

View File

@ -22,7 +22,7 @@ namespace DiscIO
CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume)
{
u64 TitleID;
u64 TitleID = 0;
pVolume->GetTitleID((u8*)&TitleID);
TitleID = Common::swap64(TitleID);

View File

@ -156,7 +156,7 @@ u64 CVolumeGC::GetRawSize() const
bool CVolumeGC::IsDiscTwo() const
{
bool discTwo;
bool discTwo = false;
Read(6,1, (u8*) &discTwo);
return discTwo;
}

View File

@ -288,7 +288,7 @@ const std::string GameListItem::GetWiiFSPath() const
if (DiscIO::IsVolumeWiiDisc(iso) || DiscIO::IsVolumeWadFile(iso))
{
u64 title;
u64 title = 0;
iso->GetTitleID((u8*)&title);
title = Common::swap64(title);