Permalink
Browse files

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)
  • Loading branch information...
lioncash committed May 28, 2018
1 parent a9f022a commit 72feeb4d18d788669ec073c3af2ee487c48099e5
Showing with 9 additions and 4 deletions.
  1. +9 −4 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),
}};
}
};

0 comments on commit 72feeb4

Please sign in to comment.