compiler/spirv: Fix uses of gnu struct = {} extension
authorPierre Moreau <pierre.morrow@free.fr>
Wed, 27 Nov 2019 19:50:12 +0000 (20:50 +0100)
committerVinson Lee <vlee@freedesktop.org>
Wed, 11 Dec 2019 06:03:22 +0000 (06:03 +0000)
Fixes: a24d6fbae60 ("meson: Add -Werror=gnu-empty-initializer to MSVC compat args")
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Pierre Moreau <dev@pmoreau.org>
src/compiler/spirv/spirv2nir.c

index 48d2694c96351ddcf5e37e172bd1df0c6be4d6ca..0ab86442bfe0ce5b077f5febd32b52e32889eef6 100644 (file)
@@ -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",