From: Tapani Pälli Date: Tue, 23 Apr 2019 11:31:44 +0000 (+0300) Subject: glsl: use empty brace initializer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af06963d245557d62d78192a7a78b5d610bbf0e9;p=mesa.git glsl: use empty brace initializer fixes following warning with clang: warning: suggest braces around initialization of subobject Signed-off-by: Tapani Pälli Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Kristian H. Kristensen --- 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. */