From: Martin Jambor Date: Mon, 23 Jun 2025 22:08:39 +0000 (+0200) Subject: tree-vect-stmts.cc: Remove an unused shadowed variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64310ae3ccebc8cfe6edf32d3c2ddfdfb02411a6;p=thirdparty%2Fgcc.git tree-vect-stmts.cc: Remove an unused shadowed variable 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. gcc/ChangeLog: 2025-06-24 Martin Jambor * tree-vect-stmts.cc (supportable_indirect_convert_operation): Remove an unused shadowed variable. --- diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index db1b539b6c7..1adc23c403f 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -14744,7 +14744,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;