summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-28 14:46:24 -0400
committerLioncash <mathew1800@gmail.com>2018-05-28 14:52:59 -0400
commit72feeb4d18d788669ec073c3af2ee487c48099e5 (patch)
tree010d60ba0fd32d725f409d778b19c2945987225f /Source/Core/VideoCommon
parenta9f022a06770b7236ac6037ec0cb36c08222424e (diff)
BPMemory: Silence a -Wmissing-braces warning
Fairly trivial to resolve, we just initialize the std::array with two sets of braces (one set to create the array, the other to start and end the aggregate data that we'll end up returning)
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/BPMemory.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h
index 0f287b4f99..db4a5b5382 100644
--- a/Source/Core/VideoCommon/BPMemory.h
+++ b/Source/Core/VideoCommon/BPMemory.h
@@ -984,10 +984,15 @@ union CopyFilterCoefficients
Values GetCoefficients() const
{
- return {
- static_cast<u8>(w0), static_cast<u8>(w1), static_cast<u8>(w2), static_cast<u8>(w3),
- static_cast<u8>(w4), static_cast<u8>(w5), static_cast<u8>(w6),
- };
+ return {{
+ static_cast<u8>(w0),
+ static_cast<u8>(w1),
+ static_cast<u8>(w2),
+ static_cast<u8>(w3),
+ static_cast<u8>(w4),
+ static_cast<u8>(w5),
+ static_cast<u8>(w6),
+ }};
}
};