glsl: use empty brace initializer
authorTapani Pälli <tapani.palli@intel.com>
Tue, 23 Apr 2019 11:31:44 +0000 (14:31 +0300)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 26 Apr 2019 19:24:41 +0000 (12:24 -0700)
fixes following warning with clang:
   warning: suggest braces around initialization of subobject

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/glsl/link_varyings.cpp

index 22ec411837dd221c9c880a444efa94581e6550ed..6f8a87bcd6a0e7e19f1733553fac8385e914d8ff 100644 (file)
@@ -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.
     */