diff options
author | Philippe Houdoin <[email protected]> | 2004-08-14 09:51:30 +0000 |
---|---|---|
committer | Philippe Houdoin <[email protected]> | 2004-08-14 09:51:30 +0000 |
commit | 428be67663d238f1ddd44053f2c4bfb3a115e80b (patch) | |
tree | b75128ff3fdcb4eb77a51bcf5569c7327a8af868 /src/mesa/main/texcompress_fxt1.c | |
parent | b4907820c23887e3f2447586d925cb52fd38ea41 (diff) |
Silent compiler "variable may be used uninitialized" warnings.
Diffstat (limited to 'src/mesa/main/texcompress_fxt1.c')
-rw-r--r-- | src/mesa/main/texcompress_fxt1.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/main/texcompress_fxt1.c b/src/mesa/main/texcompress_fxt1.c index 3d3849ab12f..603f434f209 100644 --- a/src/mesa/main/texcompress_fxt1.c +++ b/src/mesa/main/texcompress_fxt1.c @@ -414,8 +414,8 @@ fxt1_choose (float vec[][MAX_COMP], int nv, int i, j, k; int minSum = 1000; /* big enough */ int maxSum = -1; /* small enough */ - int minCol; - int maxCol; + int minCol = 0; /* phoudoin: silent compiler! */ + int maxCol = 0; /* phoudoin: silent compiler! */ struct { int flag; @@ -876,14 +876,15 @@ fxt1_quantize_HI (unsigned long *cc, { const int n_vect = 6; /* highest vector number */ const int n_comp = 3; /* 3 components: R, G, B */ - float b, iv[MAX_COMP]; /* interpolation vector */ + float b = 0.0; /* phoudoin: silent compiler! */ + float iv[MAX_COMP]; /* interpolation vector */ int i, k; unsigned long hihi; /* high quadword: hi dword */ int minSum = 1000; /* big enough */ int maxSum = -1; /* small enough */ - int minCol; - int maxCol; + int minCol = 0; /* phoudoin: silent compiler! */ + int maxCol = 0; /* phoudoin: silent compiler! */ /* Our solution here is to find the darkest and brightest colors in * the 8x4 tile and use those as the two representative colors. |