summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authormagumagu <magumagu9@gmail.com>2015-03-16 17:41:46 -0700
committermagumagu <magumagu9@gmail.com>2015-03-16 17:41:46 -0700
commit629fb8fb495c75454cf280bed7f536fbe4eaa6db (patch)
treeb9c1e0517c94dfd98bc99a7004d4e5b2970e4479 /Source/Core/VideoCommon
parentb103aa71222156822123a6b10a2af3801e98afc7 (diff)
parentf82afd1b2f4f13aecec6c7a36542121167cda357 (diff)
Merge pull request #2222 from Tilka/fix_warnings
Fix warnings
Diffstat (limited to 'Source/Core/VideoCommon')
-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;