Module: Mesa
Branch: master
Commit: c076882fbd933e973dfd079289f8e9d7deb7b0dd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c076882fbd933e973dfd079289f8e9d7deb7b0dd

Author: Jakob Bornecrantz <[email protected]>
Date:   Mon Jan  9 14:53:42 2012 +0100

rbug: Silence warning

Signed-off-by: Jakob Bornecrantz <[email protected]>
Reviewed-by Brian Paul <[email protected]>

---

 src/gallium/drivers/rbug/rbug_core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/rbug/rbug_core.c 
b/src/gallium/drivers/rbug/rbug_core.c
index b80bcd4..253d21b 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) {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to