Mesa (master): i965: Initialize member variables.
Vinson Lee
vlee at kemper.freedesktop.org
Fri Oct 8 23:42:49 UTC 2010
Module: Mesa
Branch: master
Commit: e7843363a5cb1a7e6c206e2bc79f03bd58312820
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7843363a5cb1a7e6c206e2bc79f03bd58312820
Author: Vinson Lee <vlee at vmware.com>
Date: Fri Oct 8 16:40:29 2010 -0700
i965: Initialize member variables.
Fixes these GCC warnings.
brw_wm_fp.c: In function 'search_or_add_const4f':
brw_wm_fp.c:92: warning: 'reg.Index2' is used uninitialized in this function
brw_wm_fp.c:84: note: 'reg.Index2' was declared here
brw_wm_fp.c:92: warning: 'reg.RelAddr2' is used uninitialized in this function
brw_wm_fp.c:84: note: 'reg.RelAddr2' was declared here
---
src/mesa/drivers/dri/i965/brw_wm_fp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index af1fda8..15a238c 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -89,6 +89,8 @@ static struct prog_src_register src_reg(GLuint file, GLuint idx)
reg.Negate = NEGATE_NONE;
reg.Abs = 0;
reg.HasIndex2 = 0;
+ reg.RelAddr2 = 0;
+ reg.Index2 = 0;
return reg;
}
More information about the mesa-commit
mailing list