diff options
| author | Mat M <mathew1800@gmail.com> | 2017-06-29 18:48:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-29 18:48:47 -0400 |
| commit | 898bbffaa7cd124801f4682270e1b8d38840dc24 (patch) | |
| tree | 8b597b9dd5c87e9e69720cb4204d75dcca5a08bc /Source | |
| parent | ade319f09c973e40a9d7dc70a7dc19942522c8a3 (diff) | |
| parent | e66e0344198b1909aaebbc10c275ec9d6cc6ca09 (diff) | |
Merge pull request #5724 from JonnyH/WIP/fix-some-ODR-warnings
Fix some GCC ODR warnings
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/Core/PowerPC/Jit64/Jit64_Tables.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/Core/PowerPC/JitArm64/JitArm64_Tables.cpp | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp index 4fb81d6e48..6a4a6d5183 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp @@ -8,12 +8,15 @@ #include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/PPCTables.h" +namespace +{ struct GekkoOPTemplate { int opcode; Interpreter::Instruction Inst; GekkoOPInfo opinfo; }; +} // clang-format off static GekkoOPInfo unknownopinfo = { "unknown_instruction", OPTYPE_UNKNOWN, FL_ENDBLOCK, 0, 0, 0, 0 }; diff --git a/Source/Core/Core/PowerPC/Jit64/Jit64_Tables.cpp b/Source/Core/Core/PowerPC/Jit64/Jit64_Tables.cpp index 2bbbcbe07d..23d03b5568 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit64_Tables.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit64_Tables.cpp @@ -32,11 +32,14 @@ void Jit64::DynaRunTable63(UGeckoInstruction _inst) (this->*dynaOpTable63[_inst.SUBOP10])(_inst); } +namespace +{ struct GekkoOPTemplate { int opcode; Jit64::Instruction Inst; }; +} const GekkoOPTemplate primarytable[] = { {4, &Jit64::DynaRunTable4}, // RunTable4 diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Tables.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Tables.cpp index 7e9696a339..031dfa6985 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Tables.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Tables.cpp @@ -39,12 +39,15 @@ void JitArm64::DynaRunTable63(UGeckoInstruction inst) (this->*dynaOpTable63[inst.SUBOP10])(inst); } +namespace +{ struct GekkoOPTemplate { int opcode; _Instruction Inst; // GekkoOPInfo opinfo; // Doesn't need opinfo, Interpreter fills it out }; +} constexpr GekkoOPTemplate primarytable[] = { {4, &JitArm64::DynaRunTable4}, // RunTable4 |
