Mesa (master): tgsi: silence compiler warning

Keith Whitwell keithw at kemper.freedesktop.org
Wed Aug 19 11:00:58 UTC 2009


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Wed Aug 19 12:00:24 2009 +0100

tgsi: silence compiler warning

---

 src/gallium/auxiliary/tgsi/tgsi_ureg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 2121f4d..bbe06bf 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -393,7 +393,7 @@ struct ureg_src ureg_DECL_immediate( struct ureg_program *ureg,
                                      unsigned nr )
 {
    unsigned i;
-   unsigned swizzle;
+   unsigned swizzle = 0;
 
    /* Could do a first pass where we examine all existing immediates
     * without expanding.




More information about the mesa-commit mailing list