Mesa (master): svga: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 14 21:10:47 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Feb 14 13:10:08 2010 -0800

svga: Silence uninitialized variable warning.

---

 src/gallium/drivers/svga/svga_tgsi_insn.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_tgsi_insn.c b/src/gallium/drivers/svga/svga_tgsi_insn.c
index be821e9..6debd98 100644
--- a/src/gallium/drivers/svga/svga_tgsi_insn.c
+++ b/src/gallium/drivers/svga/svga_tgsi_insn.c
@@ -525,6 +525,7 @@ static boolean emit_def_const( struct svga_shader_emitter *emit,
       break;
    default:
       assert(0);
+      opcode = inst_token( SVGA3DOP_NOP );
       break;
    }
 




More information about the mesa-commit mailing list