diff options
author | Tapani Pälli <[email protected]> | 2019-04-23 14:31:44 +0300 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2019-04-26 12:24:41 -0700 |
commit | af06963d245557d62d78192a7a78b5d610bbf0e9 (patch) | |
tree | ef6684503bedeab1b2993114277a17240ad72579 | |
parent | 976004d0e70757a0b57707e419677acb71c054c5 (diff) |
glsl: use empty brace initializer
fixes following warning with clang:
warning: suggest braces around initialization of subobject
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
-rw-r--r-- | src/compiler/glsl/link_varyings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 22ec411837d..6f8a87bcd6a 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -739,8 +739,8 @@ cross_validate_outputs_to_inputs(struct gl_context *ctx, gl_linked_shader *consumer) { glsl_symbol_table parameters; - struct explicit_location_info output_explicit_locations[MAX_VARYING][4] = { 0 }; - struct explicit_location_info input_explicit_locations[MAX_VARYING][4] = { 0 }; + struct explicit_location_info output_explicit_locations[MAX_VARYING][4] = {}; + struct explicit_location_info input_explicit_locations[MAX_VARYING][4] = {}; /* Find all shader outputs in the "producer" stage. */ |