* decl.c (expand_static_init): Avoid bogus warnings.
authorJason Merrill <jason@redhat.com>
Sat, 28 Aug 2004 06:35:36 +0000 (02:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 28 Aug 2004 06:35:36 +0000 (02:35 -0400)
From-SVN: r86689

gcc/cp/ChangeLog
gcc/cp/decl.c

index 976d2e5759570691a72a0e4ba22ceac52b9715b5..efa79bb6c1aedd8e7e4cdf038efd315093651fd2 100644 (file)
@@ -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
index c746e336fbac8cfa59efeaf6733018038d2b5442..2265d4e2b26610d0dd1925b8406a25ecd94f8f7b 100644 (file)
@@ -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;