From cd3dd880fb5da9ccf55b7850e46298ba5ea288f4 Mon Sep 17 00:00:00 2001 From: sayle Date: Wed, 12 Apr 2006 16:26:58 +0000 Subject: [PATCH] * parser.c (cp_parser_init_declarator): Initialise is_parenthesized_init to false to avoid compiler warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112889 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/parser.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a292155..9e5788a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-04-12 Roger Sayle + + * parser.c (cp_parser_init_declarator): Initialise + is_parenthesized_init to false to avoid compiler warning. + 2006-04-11 Mark Mitchell * cp-tree.h (build_operator_new_call): Adjust prototype. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 4c06784..e96165b 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -10892,7 +10892,7 @@ cp_parser_init_declarator (cp_parser* parser, initialized with "= ..", CPP_OPEN_PAREN if initialized with "(...)". */ enum cpp_ttype initialization_kind; - bool is_parenthesized_init; + bool is_parenthesized_init = false; bool is_non_constant_init; int ctor_dtor_or_conv_p; bool friend_p; -- 2.7.4