From af06963d245557d62d78192a7a78b5d610bbf0e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Tue, 23 Apr 2019 14:31:44 +0300 Subject: [PATCH] glsl: use empty brace initializer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/compiler/glsl/link_varyings.cpp | 4 ++-- 1 file 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. */ -- 2.30.2