mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 02:40:11 +01:00
intel: fixes -Werror,-Wunused-but-set-variable for clang-15
one of those error message: ../../src/intel/compiler/brw_vec4_cmod_propagation.cpp:53:8: error: variable 'ip' set but not used [-Werror,-Wunused-but-set-variable] int ip = block->end_ip + 1; Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19527>
This commit is contained in:
parent
d6bd382352
commit
4b0409ff9a
2 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ static bool
|
||||||
opt_cmod_propagation_local(const intel_device_info *devinfo, bblock_t *block)
|
opt_cmod_propagation_local(const intel_device_info *devinfo, bblock_t *block)
|
||||||
{
|
{
|
||||||
bool progress = false;
|
bool progress = false;
|
||||||
int ip = block->end_ip + 1;
|
UNUSED int ip = block->end_ip + 1;
|
||||||
|
|
||||||
foreach_inst_in_block_reverse_safe(fs_inst, inst, block) {
|
foreach_inst_in_block_reverse_safe(fs_inst, inst, block) {
|
||||||
ip--;
|
ip--;
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ static bool
|
||||||
opt_cmod_propagation_local(bblock_t *block, vec4_visitor *v)
|
opt_cmod_propagation_local(bblock_t *block, vec4_visitor *v)
|
||||||
{
|
{
|
||||||
bool progress = false;
|
bool progress = false;
|
||||||
int ip = block->end_ip + 1;
|
UNUSED int ip = block->end_ip + 1;
|
||||||
|
|
||||||
foreach_inst_in_block_reverse_safe(vec4_instruction, inst, block) {
|
foreach_inst_in_block_reverse_safe(vec4_instruction, inst, block) {
|
||||||
ip--;
|
ip--;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue