i965: Silence GCC maybe-uninitialized warning.
authorVinson Lee <vlee@freedesktop.org>
Sat, 7 Mar 2015 06:08:00 +0000 (22:08 -0800)
committerVinson Lee <vlee@freedesktop.org>
Tue, 10 Mar 2015 00:28:39 +0000 (17:28 -0700)
commit13f4963ed2de90680841658af4561ef7ab238406
treefc55f4643a7b7672b418da140cc7efb61cd13529
parent282f67becd072068147c95f26d9c705acf1bbe1b
i965: Silence GCC maybe-uninitialized warning.

brw_shader.cpp: In function ‘bool brw_saturate_immediate(brw_reg_type, brw_reg*)’:
brw_shader.cpp:618:31: warning: ‘sat_imm.brw_saturate_immediate(brw_reg_type, brw_reg*)::<anonymous union>::ud’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       reg->dw1.ud = sat_imm.ud;
                               ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_shader.cpp