Hi, when compiling tree-vect-stmts.cc with clang, it emits a warning:
gcc/tree-vect-stmts.cc:14930:19: warning: unused variable 'mode_iter' [-Wunused-variable] And indeed, there are two mode_iter local variables in function supportable_indirect_convert_operation and the first one is not used at all. This patch removes it. Bootstrapped and tested on x86_64-linx. OK for master? Thanks, Martin gcc/ChangeLog: 2025-06-24 Martin Jambor <mjam...@suse.cz> * tree-vect-stmts.cc (supportable_indirect_convert_operation): Remove an unused shadowed variable. --- gcc/tree-vect-stmts.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index f699d808e68..652c590e553 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -14927,7 +14927,6 @@ supportable_indirect_convert_operation (code_helper code, bool found_mode = false; scalar_mode lhs_mode = GET_MODE_INNER (TYPE_MODE (vectype_out)); scalar_mode rhs_mode = GET_MODE_INNER (TYPE_MODE (vectype_in)); - opt_scalar_mode mode_iter; tree_code tc1, tc2, code1, code2; tree cvt_type = NULL_TREE; -- 2.49.0