Mesa (mesa_7_7_branch): tgsi: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Sat Jan 9 04:24:47 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: 20d6360db7ca8610e5958cd7f851e664d77684fc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=20d6360db7ca8610e5958cd7f851e664d77684fc

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Jan  8 20:22:17 2010 -0800

tgsi: Silence uninitialized variable warnings.

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index b7569e7..146000a 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1209,11 +1209,19 @@ fetch_src_file_channel(
 
       default:
          assert( 0 );
+         chan->u[0] = 0;
+         chan->u[1] = 0;
+         chan->u[2] = 0;
+         chan->u[3] = 0;
       }
       break;
 
    default:
       assert( 0 );
+      chan->u[0] = 0;
+      chan->u[1] = 0;
+      chan->u[2] = 0;
+      chan->u[3] = 0;
    }
 }
 




More information about the mesa-commit mailing list