summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-03-16 10:56:16 +0100
committerTillmann Karras <tilkax@gmail.com>2015-03-16 19:02:30 +0100
commitf82afd1b2f4f13aecec6c7a36542121167cda357 (patch)
treeaea25ec5764442496fc353d77f817220f1089706 /Source/Core/VideoCommon/OpcodeDecoding.cpp
parentc73cac3ee9855579a52cfaada8815ed8734b5791 (diff)
Fix warnings
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 20a8f2eac9..4b258e7127 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -33,7 +33,7 @@
bool g_bRecordFifoData = false;
-bool g_bFifoErrorSeen = false;
+static bool s_bFifoErrorSeen = false;
static u32 InterpretDisplayList(u32 address, u32 size)
{
@@ -125,7 +125,7 @@ static void UnknownOpcode(u8 cmd_byte, void *buffer, bool preprocess)
void OpcodeDecoder_Init()
{
- g_bFifoErrorSeen = false;
+ s_bFifoErrorSeen = false;
}
@@ -291,10 +291,10 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
}
else
{
- if (!g_bFifoErrorSeen)
+ if (!s_bFifoErrorSeen)
UnknownOpcode(cmd_byte, opcodeStart, is_preprocess);
ERROR_LOG(VIDEO, "FIFO: Unknown Opcode(0x%02x @ %p, preprocessing = %s)", cmd_byte, opcodeStart, is_preprocess ? "yes" : "no");
- g_bFifoErrorSeen = true;
+ s_bFifoErrorSeen = true;
totalCycles += 1;
}
break;