]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 6 Oct 1998 05:04:32 +0000 (05:04 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 6 Oct 1998 05:04:32 +0000 (05:04 +0000)
        * Makefile.in (spew.o): Depend on toplev.h.
        * call.c (compare_ics): Initialize variables `deref_from_type2',
        `deref_to_type1' and `deref_to_type2'.
        * except.c (get_eh_type): Hide prototype and definition.
        (process_start_catch_block_old): Remove unused static prototype.
        * pt.c (tsubst_decl): Initialize variable `argvec'.
        * spew.c: Include toplev.h.

From-SVN: r22864

gcc/cp/ChangeLog
gcc/cp/Makefile.in
gcc/cp/call.c
gcc/cp/except.c
gcc/cp/pt.c
gcc/cp/spew.c

index 7bf7f57bd3af0708a7376c482f597e364ac938cc..fa705cc7ec1e54655f7d1b45c4bb4065e83a7c28 100644 (file)
@@ -1,3 +1,17 @@
+Tue Oct  6 07:57:26 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (spew.o): Depend on toplev.h.
+
+       * call.c (compare_ics): Initialize variables `deref_from_type2',
+       `deref_to_type1' and `deref_to_type2'.
+
+       * except.c (get_eh_type): Hide prototype and definition.
+       (process_start_catch_block_old): Remove unused static prototype.
+
+       * pt.c (tsubst_decl): Initialize variable `argvec'.
+
+       * spew.c: Include toplev.h.
+
 1998-10-05  Jason Merrill  <jason@yorick.cygnus.com>
 
        * pt.c (instantiate_decl): Do save and restore file position.
index f7e09414cb75904794526f884f59b8248bb25016..8c863ab9591e8cc40bbc3b286206eff7212eab4b 100644 (file)
@@ -243,8 +243,8 @@ $(srcdir)/hash.h:
        gperf -p -j1 -g -o -t -N is_reserved_word '-k1,4,7,$$' \
                $(srcdir)/gxx.gperf >$(srcdir)/hash.h
 
-spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) \
-  $(PARSE_H) $(srcdir)/../flags.h lex.h $(srcdir)/../system.h
+spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) $(PARSE_H) $(srcdir)/../flags.h \
+  lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h
 lex.o : lex.c $(CONFIG_H) $(CXX_TREE_H) \
   $(PARSE_H) input.c $(srcdir)/../flags.h hash.h lex.h \
   $(srcdir)/../c-pragma.h $(srcdir)/../system.h $(srcdir)/../toplev.h \
index 07ed1aebdccb675e465b9d4361778c4eddebfe86..f431885ab37348a2d936691a59a5a547a537a890 100644 (file)
@@ -3900,9 +3900,9 @@ compare_ics (ics1, ics2)
   tree to_type1;
   tree to_type2;
   tree deref_from_type1 = NULL_TREE;
-  tree deref_from_type2;
-  tree deref_to_type1;
-  tree deref_to_type2;
+  tree deref_from_type2 = NULL_TREE;
+  tree deref_to_type1 = NULL_TREE;
+  tree deref_to_type2 = NULL_TREE;
 
   /* REF_BINDING is non-zero if the result of the conversion sequence
      is a reference type.   In that case TARGET_TYPE is the
index c3ae3575d6598c6e749ea9b4e98af793cdc33b14..c21ac240eff2d591828e8c035de33f2387f91edf 100644 (file)
@@ -52,12 +52,13 @@ static tree call_eh_info PROTO((void));
 static void push_eh_info PROTO((void));
 static tree get_eh_info PROTO((void));
 static tree get_eh_value PROTO((void));
+#if 0
 static tree get_eh_type PROTO((void));
+#endif
 static tree get_eh_caught PROTO((void));
 static tree get_eh_handlers PROTO((void));
 static tree do_pop_exception PROTO((void));
 static void process_start_catch_block PROTO((tree, tree));
-static void process_start_catch_block_old PROTO((tree, tree));
 static tree build_eh_type_type_ref PROTO((tree));
 static tree build_terminate_handler PROTO((void));
 static tree alloc_eh_object PROTO((tree));
@@ -360,12 +361,14 @@ get_eh_value ()
 
 /* Returns a reference to the current exception type.  */
 
+#if 0
 static tree
 get_eh_type ()
 {
   return build_component_ref (get_eh_info (), get_identifier ("type"),
                              NULL_TREE, 0);
 }
+#endif
 
 /* Returns a reference to whether or not the current exception
    has been caught.  */
index 83dfde549b85b0e42841d73c00947b6f1e8632ad..10161f822ab0b1ea37aecaca756426e7860854ed 100644 (file)
@@ -5027,7 +5027,7 @@ tsubst_decl (t, args, type, in_decl)
     case FUNCTION_DECL:
       {
        tree ctx;
-       tree argvec;
+       tree argvec = NULL_TREE;
        tree gen_tmpl;
        int member;
        int args_depth;
index 17c68d34b40c3c316c0dd548a924f6010fa30a7b..ff93ac7e120bc66822a9fa6d0a1969a36f069b8e 100644 (file)
@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA.  */
 #include "parse.h"
 #include "flags.h"
 #include "obstack.h"
+#include "toplev.h"
 
 /* This takes a token stream that hasn't decided much about types and
    tries to figure out as much as it can, with excessive lookahead and