diff options
author | Vinson Lee <[email protected]> | 2010-11-04 17:42:00 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-11-04 17:42:00 -0700 |
commit | 3168c6ff1a239d089180be77a5774b566aade1e9 (patch) | |
tree | 7ee067172f1ebd5ca3d408984ff2fdd7ac23ff90 /src | |
parent | 03577f8250cc7c8cdbd6ce1e166d9c1315c15280 (diff) |
i965: Silence uninitialized variable warning.
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
Diffstat (limited to 'src')
-rw-r--r-- | 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 d69b83653e4..2cae6988804 100644 --- 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 */ |