From 21137095e248e737644793fe328322e55d783dd8 Mon Sep 17 00:00:00 2001 From: Roger 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. * parser.c (cp_parser_init_declarator): Initialise is_parenthesized_init to false to avoid compiler warning. From-SVN: r112889 --- 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 a292155f839..9e5788a329d 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 4c0678439bb..e96165b2795 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.30.2