]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-vect-stmts.cc: Remove an unused shadowed variable
authorMartin Jambor <mjambor@suse.cz>
Mon, 23 Jun 2025 22:08:39 +0000 (00:08 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 26 Jun 2025 09:29:29 +0000 (11:29 +0200)
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  <mjambor@suse.cz>

* tree-vect-stmts.cc (supportable_indirect_convert_operation):
Remove an unused shadowed variable.

gcc/tree-vect-stmts.cc

index db1b539b6c747265a22b307099f4b8c8e19a168a..1adc23c403fe8f135aac72b830ab8d84a5e67966 100644 (file)
@@ -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;