aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2008-12-04 22:44:02 +0000
committerBen Elliston <bje@au.ibm.com>2008-12-04 22:44:02 +0000
commit5060578e391edd81b41866a98608a881529fd628 (patch)
tree836ad975acf15d2121f2ed698aa37e512b5c3339
parentf6ed1c7295d594e2ca33385b115f34cbfbd31339 (diff)
* c-parser.c (c_parser_enum_specifier): Initialise ident_loc and
comma_loc. (c_parser_initelt): Initialise des_loc and ellipsis_loc. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@142448 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-parser.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e46adae3a53..01f7f0759ab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-05 Ben Elliston <bje@au.ibm.com>
+
+ * c-parser.c (c_parser_enum_specifier): Initialise ident_loc and
+ comma_loc.
+ (c_parser_initelt): Initialise des_loc and ellipsis_loc.
+
2008-12-04 Eric Botcazou <ebotcazou@adacore.com>
Gary Funck <gary@intrepid.com>
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index 0fc579b3e98..6bd7f048778 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -1605,7 +1605,7 @@ c_parser_enum_specifier (c_parser *parser)
struct c_typespec ret;
tree attrs;
tree ident = NULL_TREE;
- location_t ident_loc;
+ location_t ident_loc = UNKNOWN_LOCATION; /* Quiet warning. */
gcc_assert (c_parser_next_token_is_keyword (parser, RID_ENUM));
c_parser_consume_token (parser);
attrs = c_parser_attributes (parser);
@@ -1634,7 +1634,7 @@ c_parser_enum_specifier (c_parser *parser)
tree enum_decl;
bool seen_comma;
c_token *token;
- location_t comma_loc;
+ location_t comma_loc = UNKNOWN_LOCATION; /* Quiet warning. */
location_t value_loc;
if (c_parser_next_token_is_not (parser, CPP_NAME))
{
@@ -3065,7 +3065,7 @@ c_parser_initelt (c_parser *parser)
has been a single array designator and 2 otherwise. */
int des_seen = 0;
/* Location of a designator. */
- location_t des_loc;
+ location_t des_loc = UNKNOWN_LOCATION; /* Quiet warning. */
while (c_parser_next_token_is (parser, CPP_OPEN_SQUARE)
|| c_parser_next_token_is (parser, CPP_DOT))
{
@@ -3097,7 +3097,7 @@ c_parser_initelt (c_parser *parser)
else
{
tree first, second;
- location_t ellipsis_loc;
+ location_t ellipsis_loc = UNKNOWN_LOCATION; /* Quiet warning. */
/* ??? Following the old parser, [ objc-receiver
objc-message-args ] is accepted as an initializer,
being distinguished from a designator by what follows