From: Pierre Moreau Date: Wed, 27 Nov 2019 19:50:12 +0000 (+0100) Subject: compiler/spirv: Fix uses of gnu struct = {} extension X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ccd3f48a00b48e9b6e2e089806d62a021f24ade;p=mesa.git 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 --- 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",