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

Author: Vinson Lee <[email protected]>
Date:   Fri Apr  2 01:08:31 2010 -0700

progs/gallium/unit: Silence uninitialized variable warnings.

---

 progs/gallium/unit/u_format_test.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/progs/gallium/unit/u_format_test.c 
b/progs/gallium/unit/u_format_test.c
index 2fb7bad..8dffaf4 100644
--- a/progs/gallium/unit/u_format_test.c
+++ b/progs/gallium/unit/u_format_test.c
@@ -134,7 +134,7 @@ static boolean
 test_format_fetch_float(const struct util_format_description *format_desc,
                         const struct util_format_test_case *test)
 {
-   float 
unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4];
+   float 
unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = 
{ { { 0 } } };
    unsigned i, j, k;
    boolean success;
 
@@ -163,7 +163,7 @@ static boolean
 test_format_unpack_float(const struct util_format_description *format_desc,
                          const struct util_format_test_case *test)
 {
-   float 
unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4];
+   float 
unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = 
{ { { 0 } } };
    unsigned i, j, k;
    boolean success;
 
@@ -261,8 +261,8 @@ static boolean
 test_format_unpack_8unorm(const struct util_format_description *format_desc,
                           const struct util_format_test_case *test)
 {
-   uint8_t 
unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4];
-   uint8_t 
expected[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4];
+   uint8_t 
unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = 
{ { { 0 } } };
+   uint8_t 
expected[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = 
{ { { 0 } } };
    unsigned i, j, k;
    boolean success;
 

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

Reply via email to