From 72feeb4d18d788669ec073c3af2ee487c48099e5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 28 May 2018 14:46:24 -0400 Subject: [PATCH] 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) --- Source/Core/VideoCommon/BPMemory.h | 13 +++++++++---- 1 file 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(w0), static_cast(w1), static_cast(w2), static_cast(w3), - static_cast(w4), static_cast(w5), static_cast(w6), - }; + return {{ + static_cast(w0), + static_cast(w1), + static_cast(w2), + static_cast(w3), + static_cast(w4), + static_cast(w5), + static_cast(w6), + }}; } };