From 8ccd3f48a00b48e9b6e2e089806d62a021f24ade Mon Sep 17 00:00:00 2001 From: Pierre Moreau Date: Wed, 27 Nov 2019 20:50:12 +0100 Subject: [PATCH] compiler/spirv: Fix uses of gnu struct = {} extension Fixes: a24d6fbae60 ("meson: Add -Werror=gnu-empty-initializer to MSVC compat args") Reviewed-by: Caio Marcelo de Oliveira Filho Tested-by: Vinson Lee Signed-off-by: Pierre Moreau --- src/compiler/spirv/spirv2nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/spirv/spirv2nir.c b/src/compiler/spirv/spirv2nir.c index 48d2694c963..0ab86442bfe 100644 --- a/src/compiler/spirv/spirv2nir.c +++ b/src/compiler/spirv/spirv2nir.c @@ -72,7 +72,7 @@ int main(int argc, char **argv) return 1; } - struct spirv_to_nir_options spirv_opts = {}; + struct spirv_to_nir_options spirv_opts = {0}; nir_shader *nir = spirv_to_nir(map, word_count, NULL, 0, MESA_SHADER_FRAGMENT, "main", -- 2.30.2