From: francians@gmail.com Date: Sat, 30 Jul 2016 06:20:58 +0000 (+0200) Subject: freedreno/ir3: init ir3_shader_key with memset() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fa68fdc90656048a8e51103f59502a3c6ab1a29;p=mesa.git freedreno/ir3: init ir3_shader_key with memset() To silence missing initializers warning Signed-off-by: Francesco Ansanelli Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_shader.c b/src/gallium/drivers/freedreno/ir3/ir3_shader.c index 501382fb71e..87bdcf91a67 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_shader.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_shader.c @@ -309,7 +309,8 @@ ir3_shader_create(struct ir3_compiler *compiler, * (as otherwise nothing will trigger the shader to be * actually compiled) */ - static struct ir3_shader_key key = {{0}}; + static struct ir3_shader_key key; + memset(&key, 0, sizeof(key)); ir3_shader_variant(shader, key, debug); } return shader;