Commit e68c63e3 by James E Wilson Committed by Jim Wilson

Fix uninit warning reported by Andrew Pinski.

pt.c (tsubst_copy, case SIZEOF_EXPR): Initialize len.

From-SVN: r134001
parent 48b350ad
2008-04-07 James E. Wilson <wilson@tuliptree.org>
* pt.c (tsubst_copy, case SIZEOF_EXPR): Initialize len.
2008-04-07 Jason Merrill <jason@redhat.com> 2008-04-07 Jason Merrill <jason@redhat.com>
PR c++/35734 PR c++/35734
......
...@@ -9916,7 +9916,7 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl) ...@@ -9916,7 +9916,7 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl)
/* We only want to compute the number of arguments. */ /* We only want to compute the number of arguments. */
tree expanded = tsubst_pack_expansion (TREE_OPERAND (t, 0), args, tree expanded = tsubst_pack_expansion (TREE_OPERAND (t, 0), args,
complain, in_decl); complain, in_decl);
int len; int len = 0;
if (TREE_CODE (expanded) == TREE_VEC) if (TREE_CODE (expanded) == TREE_VEC)
len = TREE_VEC_LENGTH (expanded); len = TREE_VEC_LENGTH (expanded);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment