diff options
author | Pierre Moreau <[email protected]> | 2019-11-27 20:50:12 +0100 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2019-12-11 06:03:22 +0000 |
commit | 8ccd3f48a00b48e9b6e2e089806d62a021f24ade (patch) | |
tree | 7f02ecb0525f25b429c106cb9862e78abb03dc49 /src/compiler | |
parent | 9661fc9cdb42bc8d329feb30f3e80f511e60920e (diff) |
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 <[email protected]>
Tested-by: Vinson Lee <[email protected]>
Signed-off-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/spirv/spirv2nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |