This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

more mopup


The other unitialized warning in the C++ front end that might be worth
fixing is in expand_stmt().  If it were ever passed error_mark_node or
NULL_TREE for some reason, the return would be garbage.  Unlikely,
perhaps, but...

	* semantics.c (expand_stmt): Initialize return value.

*** gcc/cp/semantics.c.orig	Sun Sep 19 02:26:39 1999
--- gcc/cp/semantics.c	Sun Sep 19 03:11:53 1999
*************** tree
*** 2194,2200 ****
  expand_stmt (t)
       tree t;
  {
!   tree rval;
  
    while (t && t != error_mark_node)
      {
--- 2194,2200 ----
  expand_stmt (t)
       tree t;
  {
!   tree rval = NULL_TREE;
  
    while (t && t != error_mark_node)
      {

-- 
----------------------------------------------------------------------
Paul Burchard   <burchard@pobox.com>   http://www.pobox.com/~burchard/
----------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]