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:
@@ -225,7 +225,7 @@ static bool
|
||||
opt_cmod_propagation_local(const intel_device_info *devinfo, bblock_t *block)
|
||||
{
|
||||
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) {
|
||||
ip--;
|
||||
|
@@ -50,7 +50,7 @@ static bool
|
||||
opt_cmod_propagation_local(bblock_t *block, vec4_visitor *v)
|
||||
{
|
||||
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) {
|
||||
ip--;
|
||||
|
Reference in New Issue
Block a user