projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03577f8
)
i965: Silence uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Fri, 5 Nov 2010 00:42:00 +0000
(17:42 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 5 Nov 2010 00:42:00 +0000
(17:42 -0700)
Silences this GCC warning.
brw_wm_fp.c: In function 'brw_wm_pass_fp':
brw_wm_fp.c:966: warning: 'last_inst' may be used uninitialized in this function
brw_wm_fp.c:966: note: 'last_inst' was declared here
src/mesa/drivers/dri/i965/brw_wm_fp.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_fp.c
b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index d69b83653e431a38801cb37bcefd5f233fe63d57..2cae6988804efaf29b078afed4953d342d0ca69e 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/
src/mesa/drivers/dri/i965/brw_wm_fp.c
@@
-963,7
+963,7
@@
static void emit_render_target_writes( struct brw_wm_compile *c )
struct prog_src_register outcolor;
GLuint i;
- struct prog_instruction *inst, *last_inst;
+ struct prog_instruction *inst, *last_inst
= NULL
;
/* The inst->Aux field is used for FB write target and the EOT marker */