From b5223fb15f55e6d1cd77640f0550a9d1a6870865 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Tue, 2 May 2017 14:29:51 -0700 Subject: [PATCH] Jit64: fix braces warning in Jit_Integer Fixes a warning: ``` Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp:54:45: warning: suggest braces around initialization of subobject [-Wmissing-braces] static const std::array ovtable = {0, 0, XER_SO_MASK, XER_SO_MASK}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } ``` --- Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index 3ec29b8d6d..5f25fd5d22 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -51,7 +51,7 @@ void Jit64::GenerateOverflow() // We need to do this without modifying flags so as not to break stuff that assumes flags // aren't clobbered (carry, branch merging): speed doesn't really matter here (this is really // rare). - static const std::array ovtable = {0, 0, XER_SO_MASK, XER_SO_MASK}; + static const std::array ovtable = {{0, 0, XER_SO_MASK, XER_SO_MASK}}; MOVZX(32, 8, RSCRATCH, PPCSTATE(xer_so_ov)); LEA(64, RSCRATCH2, MConst(ovtable)); MOV(8, R(RSCRATCH), MRegSum(RSCRATCH, RSCRATCH2));