summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-17 14:50:07 +0000
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-17 14:50:07 +0000
commit0eaffeb768e96484d9712eb584106c9122ba15ba (patch)
treeeccd2331f3f776743b8c5f4e398db9ab918806cc
parentda86ab61e2a1f3417b05bbac240481967e7def9d (diff)
downloadppe42-gcc-0eaffeb768e96484d9712eb584106c9122ba15ba.tar.gz
ppe42-gcc-0eaffeb768e96484d9712eb584106c9122ba15ba.zip
2008-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
* c-parser.c (c_parser_binary_expression): Silence the uninitialized variable warning emitted for binary_loc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141193 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-parser.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 07b3b40eaed..80b318f288a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
+
+ * c-parser.c (c_parser_binary_expression): Silence the
+ uninitialized variable warning emitted for binary_loc.
+
2008-10-16 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (phi_translate_set): Add constants to phi
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index f08b2813010..0fc579b3e98 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -4583,7 +4583,7 @@ c_parser_binary_expression (c_parser *parser, struct c_expr *after)
} stack[NUM_PRECS];
int sp;
/* Location of the binary operator. */
- location_t binary_loc;
+ location_t binary_loc = UNKNOWN_LOCATION; /* Quiet warning. */
#define POP \
do { \
switch (stack[sp].op) \
OpenPOWER on IntegriCloud