mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 00:10:33 +01:00
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
This commit is contained in:
parent
5abd498c47
commit
e7843363a5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue