From c076882fbd933e973dfd079289f8e9d7deb7b0dd Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 9 Jan 2012 14:53:42 +0100 Subject: [PATCH] rbug: Silence warning Signed-off-by: Jakob Bornecrantz Reviewed-by Brian Paul --- src/gallium/drivers/rbug/rbug_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/rbug/rbug_core.c b/src/gallium/drivers/rbug/rbug_core.c index b80bcd4228f..253d21bbc1e 100644 --- a/src/gallium/drivers/rbug/rbug_core.c +++ b/src/gallium/drivers/rbug/rbug_core.c @@ -104,7 +104,8 @@ rbug_shader_create_locked(struct pipe_context *pipe, struct tgsi_token *tokens) { void *state = NULL; - struct pipe_shader_state pss = { 0 }; + struct pipe_shader_state pss; + memset(&pss, 0, sizeof(pss)); pss.tokens = tokens; switch(rb_shader->type) { -- 2.30.2