Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Mar 16, 2015
1 parent c73cac3 commit 2d44121
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp
Expand Up @@ -109,7 +109,7 @@ bool Jitx86Base::BackPatch(u32 emAddress, SContext* ctx)
if (codePtr[totalSize] != 0xc1 || codePtr[totalSize + 2] != 0x10)
{
PanicAlert("BackPatch: didn't find expected shift %p", codePtr);
return nullptr;
return false;
}
info.signExtend = (codePtr[totalSize + 1] & 0x10) != 0;
totalSize += 3;
Expand Down Expand Up @@ -168,7 +168,7 @@ bool Jitx86Base::BackPatch(u32 emAddress, SContext* ctx)
if (it3 == pcAtLoc.end())
{
PanicAlert("BackPatch: no pc entry for address %p", codePtr);
return nullptr;
return false;
}

u32 pc = it3->second;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/OGL/GLInterface/GLX.h
Expand Up @@ -23,7 +23,7 @@ class cInterfaceGLX : public cInterfaceBase
void SwapInterval(int Interval) override;
void Swap() override;
void* GetFuncAddress(const std::string& name) override;
bool Create(void *window_handle);
bool Create(void *window_handle) override;
bool MakeCurrent() override;
bool ClearCurrent() override;
void Shutdown() override;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/OpcodeDecoding.cpp
Expand Up @@ -33,7 +33,7 @@


bool g_bRecordFifoData = false;
bool g_bFifoErrorSeen = false;
static bool g_bFifoErrorSeen = false;

static u32 InterpretDisplayList(u32 address, u32 size)
{
Expand Down
4 changes: 2 additions & 2 deletions Source/UnitTests/Core/MMIOTest.cpp
Expand Up @@ -108,12 +108,12 @@ TEST_F(MappingTest, ReadWriteComplex)

m_mapping->Register(0x0C001234,
MMIO::ComplexRead<u8>([&read_called](u32 addr) {
EXPECT_EQ(0x0C001234, addr);
EXPECT_EQ(0x0C001234u, addr);
read_called = true;
return 0x12;
}),
MMIO::ComplexWrite<u8>([&write_called](u32 addr, u8 val) {
EXPECT_EQ(0x0C001234, addr);
EXPECT_EQ(0x0C001234u, addr);
EXPECT_EQ(0x34, val);
write_called = true;
})
Expand Down

0 comments on commit 2d44121

Please sign in to comment.