From 218e09bc84b206bd6b2afe355057850b839af855 Mon Sep 17 00:00:00 2001 From: jason Date: Sat, 28 Aug 2004 06:35:36 +0000 Subject: [PATCH] * decl.c (expand_static_init): Avoid bogus warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86689 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 976d2e57595..efa79bb6c1a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2004-08-28 Jason Merrill + + * decl.c (expand_static_init): Avoid bogus warnings. + 2004-08-27 Jason Merrill PR c++/16851 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c746e336fba..2265d4e2b26 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; -- 2.11.4.GIT