aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2004-08-28 02:35:36 -0400
committerJason Merrill <jason@gcc.gnu.org>2004-08-28 02:35:36 -0400
commitb40a3a7b9e3f1c567b9fe99480501a6a53520704 (patch)
treeeb14921b0336352491769cab006bb20e8dd855ac
parentbcac21a0c6b6e927a963a1f4403891e526aa40ff (diff)
downloadgcc-b40a3a7b9e3f1c567b9fe99480501a6a53520704.zip
gcc-b40a3a7b9e3f1c567b9fe99480501a6a53520704.tar.gz
gcc-b40a3a7b9e3f1c567b9fe99480501a6a53520704.tar.bz2
* decl.c (expand_static_init): Avoid bogus warnings.
From-SVN: r86689
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 976d2e5..efa79bb 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-28 Jason Merrill <jason@redhat.com>
+
+ * decl.c (expand_static_init): Avoid bogus warnings.
+
2004-08-27 Jason Merrill <jason@redhat.com>
PR c++/16851
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index c746e33..2265d4e 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5151,8 +5151,8 @@ expand_static_init (tree decl, tree init)
if (DECL_FUNCTION_SCOPE_P (decl))
{
/* Emit code to perform this initialization but once. */
- tree if_stmt, inner_if_stmt;
- tree then_clause, inner_then_clause;
+ tree if_stmt, inner_if_stmt = NULL_TREE;
+ tree then_clause, inner_then_clause = NULL_TREE;
tree guard, guard_addr, guard_addr_list;
tree acquire_fn, release_fn, abort_fn;
tree flag, begin;