2008-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Oct 2008 14:50:07 +0000 (14:50 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Oct 2008 14:50:07 +0000 (14:50 +0000)
* 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

gcc/ChangeLog
gcc/c-parser.c

index 07b3b40..80b318f 100644 (file)
@@ -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
index f08b281..0fc579b 100644 (file)
@@ -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)                                                    \