From 8e6c18d3f45dd763d299aa6dc84bb5571a27c932 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sun, 29 Jan 2023 18:22:42 +0100 Subject: [PATCH] emitter: Ignore Wmissing-braces warnings on clang. --- common/emitter/avx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/emitter/avx.cpp b/common/emitter/avx.cpp index feaafe55b3..af0eb5bd21 100644 --- a/common/emitter/avx.cpp +++ b/common/emitter/avx.cpp @@ -16,6 +16,12 @@ #include "common/emitter/internal.h" #include "common/emitter/tools.h" +// warning: suggest braces around initialization of subobject [-Wmissing-braces] +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmissing-braces" +#endif + namespace x86Emitter { const xImplAVX_Move xVMOVAPS = {0x00, 0x28, 0x29};