mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965: Silence uninitialized variable warning.
Silences this GCC warning. brw_fs.cpp: In member function 'void fs_visitor::split_virtual_grfs()': brw_fs.cpp:2516: warning: unused variable 'reg'
This commit is contained in:
parent
7e2256688a
commit
d11db2a857
1 changed files with 1 additions and 0 deletions
|
|
@ -2515,6 +2515,7 @@ fs_visitor::split_virtual_grfs()
|
|||
for (int j = 2; j < this->virtual_grf_sizes[i]; j++) {
|
||||
int reg = virtual_grf_alloc(1);
|
||||
assert(reg == new_virtual_grf[i] + j - 1);
|
||||
(void) reg;
|
||||
}
|
||||
this->virtual_grf_sizes[i] = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue