Mesa (master): i965: Silence uninitialized variable warning.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Nov 4 17:40:19 PDT 2010
Module: Mesa
Branch: master
Commit: 03577f8250cc7c8cdbd6ce1e166d9c1315c15280
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=03577f8250cc7c8cdbd6ce1e166d9c1315c15280
Author: Vinson Lee <vlee at vmware.com>
Date: Thu Nov 4 17:39:17 2010 -0700
i965: Silence uninitialized variable warning.
Silences this GCC warning.
brw_wm_fp.c: In function 'precalc_tex':
brw_wm_fp.c:666: warning: 'tmpcoord.Index' may be used uninitialized in this function
---
src/mesa/drivers/dri/i965/brw_wm_fp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index 938fb80..d69b836 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -663,7 +663,7 @@ static void precalc_tex( struct brw_wm_compile *c,
const struct prog_instruction *inst )
{
struct prog_src_register coord;
- struct prog_dst_register tmpcoord;
+ struct prog_dst_register tmpcoord = { 0 };
const GLuint unit = c->fp->program.Base.SamplerUnits[inst->TexSrcUnit];
assert(unit < BRW_MAX_TEX_UNIT);
More information about the mesa-commit
mailing list