From 956b0708b4246f70480332f7bc8b402c4bffae31 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 19 Aug 2014 15:04:37 -0400 Subject: [PATCH 1/2] Core: Initialize all JITIL RegInfo members in the initializer list. --- Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp b/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp index a3b4a91881..6798f390cc 100644 --- a/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp +++ b/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp @@ -49,16 +49,10 @@ struct RegInfo unsigned numFSpills; unsigned exitNumber; - RegInfo(JitIL* j, InstLoc f, unsigned insts) : Jit(j), FirstI(f), IInfo(insts), lastUsed(insts) + RegInfo(JitIL* j, InstLoc f, unsigned insts) + : Jit(j), Build(nullptr), FirstI(f), IInfo(insts), lastUsed(insts) + , regs(), fregs(), numSpills(0), numFSpills(0), exitNumber(0) { - for (unsigned i = 0; i < MAX_NUMBER_OF_REGS; i++) - { - regs[i] = nullptr; - fregs[i] = nullptr; - } - numSpills = 0; - numFSpills = 0; - exitNumber = 0; } private: From ffe6bcf22f714a989a054ef1d6094e3074aae7a1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 3 Sep 2014 23:07:19 -0400 Subject: [PATCH 2/2] VSProps: Add C4351 to the list of disabled warnings in Base.props --- Source/VSProps/Base.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props index 32b4ebd75e..3fe3bbcba1 100644 --- a/Source/VSProps/Base.props +++ b/Source/VSProps/Base.props @@ -68,7 +68,7 @@ not much else we can do since many externals use it. The bad part is that there doesn't seem to be a way to only ignore the specific instance we don't care about... --> - 4996 + 4996;4351 true